[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Need help using ejb-jar.xml instead of EJB3 annotations
smyers68
do-not-reply at jboss.com
Thu Dec 11 16:55:59 EST 2008
Ok I found the answer to my own question. Just needed to read the EJB3 spec closer. The correct ejb-jar.xml config for my session beans is:
| <session>
| <ejb-name>PurchaseOrderService</ejb-name>
| <mapped-name>test-app/PurchaseOrderServiceBean/remote</mapped-name>
| <business-remote>test.service.po.PurchaseOrderService</business-remote>
| <ejb-class>test.service.po.PurchaseOrderServiceBean</ejb-class>
| <session-type>Stateless</session-type>
|
| <ejb-local-ref>
| <ejb-ref-name>ejb/PurchaseOrderDaoJpa</ejb-ref-name>
| <local>test.persistence.po.PurchaseOrderDao</local>
| <injection-target>
| <injection-target-class>
| test.service.po.PurchaseOrderServiceBean</injection-target-class>
| <injection-target-name>purchaseOrderDao</injection-target-name>
| </injection-target>
| </ejb-local-ref>
|
| </session>
|
| <session>
| <ejb-name>PurchaseOrderDaoJpa</ejb-name>
| <ejb-class>test.persistence.po.PurchaseOrderDaoJpa</ejb-class>
| <session-type>Stateless</session-type>
| </session>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4196078#4196078
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4196078
More information about the jboss-user
mailing list