1 Reply Latest reply on Nov 27, 2006 10:28 AM by Pete Muir

    dependency injection on "POJOs"

    supert24 supert24 Newbie

      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)?