Sounds like you should just have the EJB container inject it like so.

  | @PersistenceContext(unitName="your_persistence_unit")
  | private EntityManager em;
  | 

The new EJB3 spec allows for container injection. I think they call it Inside 
Out Container (IOC) or something like that. Anyway, it's build on annotation 
from the 1.5 JDK. You can do quite a lot of this type of inject without seam. 
Seam builds on this concept and also introduces Outjection.



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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967473
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to