This content has been marked as final.
Show 3 replies
-
1. Re: @persistencecontext: name or unitName?
heinrich Feb 23, 2006 2:22 AM (in response to mnewcomb)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 secondEm;
Thats all.
Greetings
Martin -
2. Re: @persistencecontext: name or unitName?
mnewcomb Feb 23, 2006 8:57 AM (in response to 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. -
3. Re: @persistencecontext: name or unitName?
elkner Feb 23, 2006 9:22 AM (in response to mnewcomb)yes.