12 Replies Latest reply on Aug 5, 2007 8:30 AM by Michael Meier

    Dependecy Injection in JMX Service Object

    Peter Voringer Newbie

      Hi,

      is it a bug that Injections in JMX Service Objects are bound not until the
      LifeCycle method start() is executed? This behaviour is new since CR2.
      While proceeding the create() and start() method the EntityManager injected by

      @PersistenceContext(unitName = "myEM") protected EntityManager em;
      

      em is "null", but when calling a method after the start of the Service it is available.
      I compared org.jboss.system.ServiceController from RC1 and CR2, but there are no changes, which would affect this behaviour.

      Someone has an idea what changes affected this?



      Regards

      Peter