This content has been marked as final.
Show 2 replies
-
1. Re: invoke MBean method from EJB
kogan Jan 24, 2002 7:51 PM (in response to rsrivast)You can call any management method from your MBean
by calling
MBeanServer.invoke(ObjectName name, String operationName,
Object[] params, String[] signature) -
2. Re: invoke MBean method from EJB
rsrivast Jan 25, 2002 2:24 PM (in response to rsrivast)Thanks! An alternative is to setAttribute(ObjectName, Attribute) and getAttribute(ObjectName, String[]). However, to make this approach work I had to expose the attribute name when adding the mbean. It may not work when invoking remote mbean.