1 Reply Latest reply on May 3, 2006 12:39 PM by William DeCoste

    Using @Depends annotation in Embeddable ejb3 container

    John Gilbert Apprentice

      I am using the @Depends annotation to inject an mbean into my stateless session bean. This works great when I run in the app server.

      However, it doesn't seem to work in the embeddable container. Should this work?

      This line in DependsFieldInjector throws an IndexOutOfBoundsException.

       MBeanServer server = (MBeanServer)MBeanServerFactory.findMBeanServer(null).get(0);
      
      


      So, it appears like there is no mbean server.

      This is how I deployed the mbean in my ejb3-deployment.xml:
       <bean class="net.taylor.tracker.services.MockUserModule"
       name="portal:service=Module,type=User">
       </bean>