[jboss-user] [JBoss Seam] - dependency injection on "POJOs"

supert24 do-not-reply at jboss.com
Mon Nov 27 10:18:53 EST 2006


My session bean A instantiates a POJO B,  which is not
container managed (so B is no session bean itself), but
defines annotations for attributes, like

	@PersistenceContext
	private EntityManager em;

Since B is not container managed, the annotation not influences
the attribute "em". So is there a manual way to "execute"
dependencies on instantiated objects (perhaps one can use the
context of the instantiating session bean)?

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

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



More information about the jboss-user mailing list