Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Select JMX remoting provider at runtime

Reply
Thread Tools

Select JMX remoting provider at runtime

 
 
Daniel Santos
Guest
Posts: n/a
 
      01-24-2007
Hello!

I have two JMX remoting providers in the classpath :

- mx4j 3.0.1
- JMX JSR 160 RI 1.0

I am trying to start the rmi connector server of the sun RI.
Even when setting the system property :
jmx.remote.protocol.provider.pkgs=com.sun.jmx.remo te
The implementation used is the one from mx4j.

I get the exception :

java.io.IOException: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused]
at mx4j.remote.resolver.rmi.Resolver.bindServer(Resol ver.java:199)
at javax.management.remote.rmi.RMIConnectorServer.sta rt(RMIConnectorServer.java:152)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.jmx.mbeanserver.StandardMetaDataImpl.invok e(StandardMetaDataImpl.java:410)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDa taImpl.java:22
at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.invoke(DefaultMBeanServerInterceptor.java:822)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxM BeanServer.java:792)
... stack frames of my code ...

Also tried putting the property in the environment map that is passed to
the connector server creation call, but no cigar

Help wanted
 
Reply With Quote
 
 
 
 
Daniel Santos
Guest
Posts: n/a
 
      01-24-2007
On Wed, 24 Jan 2007 12:44:40 +0000, Daniel Santos wrote:

> Hello!
>
> I have two JMX remoting providers in the classpath :
>
> - mx4j 3.0.1
> - JMX JSR 160 RI 1.0
>
> I am trying to start the rmi connector server of the sun RI.
> Even when setting the system property :
> jmx.remote.protocol.provider.pkgs=com.sun.jmx.remo te



Typo : the property value is com.sun.jmx.remote.protocol


> The implementation used is the one from mx4j.
>
> I get the exception :
>
> java.io.IOException: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
> java.net.ConnectException: Connection refused]
> at mx4j.remote.resolver.rmi.Resolver.bindServer(Resol ver.java:199)
> at javax.management.remote.rmi.RMIConnectorServer.sta rt(RMIConnectorServer.java:152)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at com.sun.jmx.mbeanserver.StandardMetaDataImpl.invok e(StandardMetaDataImpl.java:410)
> at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDa taImpl.java:22
> at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.invoke(DefaultMBeanServerInterceptor.java:822)
> at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxM BeanServer.java:792)
> ... stack frames of my code ...
>
> Also tried putting the property in the environment map that is passed to
> the connector server creation call, but no cigar
>
> Help wanted

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to connect between JMX 1.0 and JMX 1.2 mike Java 0 10-25-2007 12:03 PM
WEB-Service versus Service hosted by System.Runtime.Remoting in windows-Application Peter Stojkovic ASP .Net Web Services 0 03-30-2006 03:14 PM
Informix .net provider - Sql server .net provider BS ASP .Net 3 06-17-2004 01:11 AM
select of select box will select multiple in another box palmiere Javascript 1 02-09-2004 01:11 PM
Transferring From Old e-mail Provider Account To A New One (different provider): Any Way To ? Robert11 Computer Support 0 06-26-2003 04:38 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57