Re: jmx, cruisecontrol + rmi / call method with arg
Alper Akture <[email protected]>
| Newsgroups | gmane.comp.java.mx4j.user |
|---|---|
| Message-ID | <DB67197B2E16D411831E00508B7156690262339A@caysapp001.intersperse.com> |
I would think the person who wrote the MBean you are calling the method on needs to tell you, or provide you with appropriate documentation. If that's not possible, you could use MBeanServerConnection.getMBeanInfo() to get the MBeanInfo object. Then you can use the MBeanInfo method MBeanInfo.getOperations() to get the MBeanOperationInfo, which has a method getParameterInfo() which returns a MBeanParameterInfo that you can use to determine what you need. Alper -----Original Message----- From: [email protected] [mailto:[email protected]] Sent: Monday, February 05, 2007 11:05 AM To: [email protected] Subject: [Mx4j-user] jmx, cruisecontrol + rmi / call method with arg Hello, I use CruiseControl which use MX4J to publish its interface to various protocols. I have built a working CruiseControl Connector which allows me to remotely trigger tasks. Among the methods that can be invoked there is one which has a parameter, namely "buildWithTarget". My problem is how to correctly set the target parameter. My call on MBeanServerConnection via RMI mbsc.invoke("myProject", "buildWithTarget", params, args); always fails with the following exception: at mx4j.server.ReflectionMBeanInvoker.invoke(ReflectionMBeanInvoker.java:61) [cruiseConrolConnector] at mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke(InvokerMBeanSer verInterceptor.java:238) [cruiseConrolConnector] at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanSer verInterceptor.java:120) [cruiseConrolConnector] at mx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke(SecurityMBeanS erverInterceptor.java:84) [cruiseConrolConnector] at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanSer verInterceptor.java:120) [cruiseConrolConnector] at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanSer verInterceptor.java:120) How do I find out what to pass as params and args? thanks for help. jacques ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Mx4j-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mx4j-user ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642