hi guys,
Some times ago, I developed an application which tries to monitor jms queue by using the jmx function provided by jboss. Due to its limitation, I added some functions to fulfill my needs.
The jboss messaging is installed on two virtual servers, lets call them A and B. Problem is, the extended JMX functions work on server A, but they cannot be found on server B.
Server B is a clone of server A which have everything the same but the hostname. (FYI, they are cloned using XEN)
Here is the error log from client:
2008-10-21 07:34:00,829 [FATAL] [Test_Monitor ] test.jms.monitor: Exception
occured [toString:javax.management.ReflectionException][stacktrace:org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:231);org.jboss.mx
.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659);sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source);sun.reflect.DelegatingMethodAccessorImp
l.invoke(DelegatingMethodAccessorImpl.java:25);java.lang.reflect.Method.invoke(Method.java:585);][cause:java.lang.IllegalArgumentException: Unable to find ope
ration listUniquePropertyValue(java.lang.String,java.lang.String)]"
org.jboss.jms.server.destination.QueueService
org.jboss.jms.server.destination.ManagedQueue
org.jboss.jms.server.destination.QueueMBean
I modify also this file: Queue-xmbean.xml, in order to expose the function