7 Replies Latest reply on Aug 27, 2011 1:02 PM by lil_z420

    @EJB Singleton dependency injection issue in AS 6.1.0-SNAPSHOT

    lil_z420

      I am testing the lastest snapshot of AS 6.1 and I am having issues with dependency resolution on startup with EJB Singletons. This same code works fine using AS 6.0.

       

      I have a SSB (name=PricingServiceBean) that has a EJB Singleton reference in it (name=CurveMonitor). It is injected using the @EJB annotation. The Singleton class is anotated with @Singleton and @Startup and does not implement any interfaces. I get the following error on startup:

       

      Deployment "jboss-switchboard:appName=FO,module=Server,name=PricingServiceBean" is missing the following dependencies:

          Dependency "jboss.j2ee:ear=FO.ear,jar=Server.jar,name=CurveMonitor,service=EJB3" (should be in state "Installed", but is actually in state "PreInstall")

          Dependency "jboss.j2ee:ear=FO.ear,jar=Server.jar,name=CurveMonitor,service=EJB3,type=singleton-bean-jndi-binder" (should be in state "Installed", but is actually in state "Create")

          Dependency "jboss.j2ee:ear=FO.ear,jar=Server.jar,name=CurveMonitor,service=EJB3,type=nointerface-view-jndi-binder" (should be in state "Installed", but is actually in state "Instantiated")

       

      Has anyone else had any issues with this using AS6.1?