Hi Im trying to invoke operations on an MBean from a remote client. I got it working successfully if no authentication is enabled on my jmx-console with this code:
Hashtable props = new Hashtable(); props.put(InitialContext.PROVIDER_URL,"jnp://:1099"); props.put(InitialContext.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory"); ctx = new InitialContext(props); MBeanServerConnection server =(MBeanServerConnection) ctx.lookup("jmx/invoker/RMIAdaptor"); Object obj = server.invoke(new ObjectName("jboss.ws4ee:service=AxisService"),"listServiceEndpoints",new Object[0],new String[0]); However if authentication is enabled I cant figure out a way to pass credential information. There seem to be no methods on the MBeanServerConnection where I can set the credential information. This is with JBoss 4. Can anyone point me to where I can find this information? Thanks Pratima View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3916550#3916550 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916550 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user