[jboss-user] [EJB 3.0] - Re: PersistanceUnit for the ear
do-not-reply at jboss.com
Fri Dec 12 15:42:38 EST 2008
I should clearify a bit.
I like to keep my entity beans separate from my business logic EJB. I also use the entity beans in other applications. I created a jar containing the entity beans and a persistence.xml file
To inject the PersitanceContext into a sessoin bean I used the line below.
Yes the "XXX" is just random.
I also had to put the entity.jar in a <module/> section in the applicaton.xml file
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4196321#4196321
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4196321
More information about the jboss-user