[jboss-user] [JBoss Seam] - Re: EntityManager newibe Question

c_eric_ray do-not-reply at jboss.com
Fri Aug 25 09:28:49 EDT 2006


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



More information about the jboss-user mailing list