[jboss-user] [EJB 3.0] - Re: Can I use @Ejb in an MBean?
bdeen
do-not-reply at jboss.com
Thu Feb 15 12:38:36 EST 2007
Have you put a dependency on the EJBDeployer within your @Service?
Try something like
@Service (objectName="trail:service=calculator")
@Management(Calculator.class)
@Depends( "jboss.ejb3:service=EJB3Deployer" )
public class CalculatorMBean implements Calculator {
@Ejb TheBean myBean;
that way the EJBDeployer has a chance to init and start before your service does thereby ensuring that the EJB is around.
I wonder can you put a depends directly on the EJB itself. That would be the best I would think.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017145#4017145
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4017145
More information about the jboss-user
mailing list