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);
<bean class="net.taylor.tracker.services.MockUserModule" name="portal:service=Module,type=User"> </bean>
Looks like a bug. I have opened a JIRA task for this issue.
http://jira.jboss.com/jira/browse/EJBTHREE-550