[jboss-user] [EJB 3.0] - Can I use @Ejb in an MBean?

khkachn do-not-reply at jboss.com
Sun Feb 11 21:48:30 EST 2007


Hi,

  I would like to have access to a Stateless session bean inside an MBean service I will be working on. Can I use the @Ejb annotation to do this?

For example:

@Service (objectName="trail:service=calculator")
@Management(Calculator.class)
public class CalculatorMBean implements Calculator {

  @Ejb TheBean myBean;

Thanks,

Ken

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4014769#4014769

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4014769



More information about the jboss-user mailing list