Hi, I'm trying to write a simple client to access the MBean for a JMS destination. Whenver I try and invoke a method on the RMIAdaptor I get an IllegalArgumentException claiming I've used the "wrong number of arguements"
Can anyone help !? Here's the code :- Properties props = new Properties(); props.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); props.setProperty(Context.PROVIDER_URL, "jnp://ifdevdoc2:6999"); InitialContext ctx = new InitialContext(props); RMIAdaptor server = (RMIAdaptor) ctx.lookup("jmx/invoker/RMIAdaptor"); ObjectName name = new ObjectName("jboss.mq.destination :name=THRequest"); //error happens here.. System.out.println(server.getAttribute(name, "JNDIName")); Thanks, Steve. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3898909#3898909 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3898909 ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user