[jboss-user] [Management, JMX/JBoss] - Re: MBean deployment - EJB3 and call

jaikiran do-not-reply at jboss.com
Sat May 3 03:43:47 EDT 2008


Does changing the method to 

  | private Object callXMB_Calculator(String operationName, Object[] params, String[] signature)
  |   {
  |     Object result = null;
  | 
  |     try
  |     {
  |      MBeanServer mbs = (MBeanServer) MBeanServerFactory.findMBeanServer(null).iterator().next();
  |       ObjectName oName = new ObjectName("jboss.j2ee:jar=CalcMBean.jar,name=CalculatorMBean,service=EJB3");
  | 
  |       
  |       }
  | 
  |       result = mbs.invoke(oName, operationName, params, signature);
  | 	  
  |  }
 
and also changing the code, for invoking, to:

 callXMB_Calculator("calculate", new Object[]{1,2,4d},new String[] {"int","int","double"});

work?

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

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



More information about the jboss-user mailing list