[jboss-user] [Management, JMX/JBoss] - Using EJB injection in JMX / MBean
vri_97
do-not-reply at jboss.com
Tue Aug 21 05:22:57 EDT 2007
Hi,
Is it possible to use @EJB in JMX / MBean service?
public class HelloService implements HelloServiceMBean{
@EJB
private static Hello hello;
public void start() {
hello.sayHello()
}
}
I have check in JNDI view, and HelloBean is already registered.
And I have set the dependency of the HelloService to HelloBean in jboss-service.xml.
somehow, the injection is not working. hello is always return null
Does anyone know the cause, I try to search in this forum regarding the issue, and found nothing.
Thanks
Regards,
Ferry
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076165#4076165
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076165
More information about the jboss-user
mailing list