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> | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3940844#3940844 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3940844 ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
