[JBoss-user] [EJB 3.0] - Re: @persistencecontext: name or unitName?

2006-02-23 Thread mnewcomb
Did this change in the latest PFD? I ask because the EJB3 trail I have has the entity-manager tag inside the persistence.xml file, not a persistence-unit tag. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3925820#3925820 Reply to the post :

[JBoss-user] [EJB 3.0] - Re: @persistencecontext: name or unitName?

2006-02-23 Thread elkner
yes. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3925824#3925824 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3925824 --- This SF.Net email is sponsored by xPML, a

[JBoss-user] [EJB 3.0] - Re: @persistencecontext: name or unitName?

2006-02-22 Thread heinrich
Hi Michael, just specify a second one in your persistence.xml. They are enclosed by the persistence-unit tags. So in your SessionBean just do like that | @PersistenceContext(unitName=myFistUnit) | EntityManager fistEm; | | @PersistenceContext(unitName=mySecondUnit) | EntityManager