This content has been marked as final.
Show 3 replies
-
1. Re: SOAP connector example
wdrai Jan 19, 2004 8:56 PM (in response to gjb9876)"wdrai" wrote:
"wdrai" wrote:
You should better use the RMI Connector. It works well and it is very easy to use.
I can see absolutely no reason to use SOAP to call MBeans from a Java client.
You can do something like :
InitialContext ctx = new InitialContext();
RMIAdaptor server = (RMIAdaptor) ctx.lookup("jmx/rmi/RMIAdaptor");
ObjectName name = new ObjectName("my:name=myMbean");
Object[] params = { myParam };
String[] signature = { "java.lang.String" };
Object result = server.invoke(name, "myMethod", params, signature); -
2. Re: SOAP connector example
gjb9876 Jan 22, 2004 1:01 PM (in response to gjb9876)"gjb9876" wrote:
"gjb9876" wrote:
Thanks for the info about the simple RMI example. This looks like you must run client on the same machine as the server? Or... where do I specify the server IP and port?
Also, I'm still interested in a SOAP connector example, can anyone else help me out with more info?
Thanks, Gretel -
3. Re: SOAP connector example
wdrai Jan 27, 2004 3:14 PM (in response to gjb9876)"wdrai" wrote:
For RMI just put in your client classpath a jndi.properties file containing :
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.naming.provider.url=jnp://somehost:1099