This content has been marked as final.
Show 3 replies
-
1. Re: Conversation scoped EntityManager
swd847 Apr 7, 2010 6:00 AM (in response to phantasmo)You do it like this:
public class Databases { @Produces @PersistenceContext(unitName="UserData") @ConversationScoped @Users EntityManager userDatabaseEntityManager; }
-
2. Re: Conversation scoped EntityManager
nickarls Apr 7, 2010 8:55 AM (in response to phantasmo)It will probably by in the Seam Persistence module
-
3. Re: Conversation scoped EntityManager
phantasmo Apr 7, 2010 9:39 AM (in response to phantasmo)
Stuart Douglas wrote on Apr 07, 2010 06:00:
You do it like this:public class Databases { @Produces @PersistenceContext(unitName="UserData") @ConversationScoped @Users EntityManager userDatabaseEntityManager; }
So it's as I have guessed. Thank you for explaining.
Nicklas Karlsson wrote on Apr 07, 2010 08:55:
It will probably by in the Seam Persistence moduleI certainly hope so, as I believe this to be the example of boiler code Seam was designed to avoid. Thanks for the tip.