deploy your entities as you would but assign them a JNDI name(see docs).  In 
your EJB interceptor pick the appropriate JNDI name of the EntityManager you 
want to access.  Either inject the ENtityManager into the field of your bean 
using a custom annotation, or stuff the chosen entity manager into a 
java.lang.ThreadLocal.  This way you still get the automatic session management 
that the EJB/Java Persistence integration gives you.  Following me?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3948032#3948032

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3948032


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to