1 Reply Latest reply on Feb 20, 2007 12:48 PM by Jason Anderson

    Resource injection into EJB gives "null" values in embeddabl

    Jason Anderson Newbie

      Has anyone tried resource injection of EntityManager in EJB-3.0_Embeddable_ALPHA_9 ?

      Injected value is null in embedded container, but same bean with persistence.xml in real JBoss 4.0.5GA injects correctly.

      Trying to resource inject SessionContext also returns null.

      I am using other injected resources like @EJB, deployment seems to understand, lookup and log these but I have not checked the values yet.

      public class MyBean implements IMyBean {
      private EntityManager em;
      protected SessionContext ctx;

      public void someMethod() { // em and ctx are null here