Update of /cvsroot/mx4j/mx4j/src/core/javax/management/remote/rmi
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30372/core/javax/management/remote/rmi
Modified Files:
RMIConnectorServer.java
Log Message:
Fix for bug #907629: now using the same classloader mechanism of the provider to lookup the resolver
Index: RMIConnectorServer.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/core/javax/management/remote/rmi/RMIConnectorServer.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** RMIConnectorServer.java 1 Dec 2003 16:26:20 -0000 1.12
--- RMIConnectorServer.java 1 Mar 2004 18:06:33 -0000 1.13
***************
*** 136,140 ****
JMXServiceURL address = getAddress();
String protocol = address.getProtocol();
! ConnectionResolver resolver = ConnectionResolver.getInstance(protocol);
if (rmiServer == null)
{
--- 136,140 ----
JMXServiceURL address = getAddress();
String protocol = address.getProtocol();
! ConnectionResolver resolver = ConnectionResolver.newConnectionResolver(protocol, environment);
if (rmiServer == null)
{
***************
*** 164,172 ****
active = false;
! rmiServer.close();
JMXServiceURL address = getAddress();
String protocol = address.getProtocol();
! ConnectionResolver resolver = ConnectionResolver.getInstance(protocol);
if (resolver == null) throw new MalformedURLException("Unsupported protocol: " + protocol);
resolver.unbindServer(rmiServer, address, environment);
--- 164,172 ----
active = false;
! if (rmiServer != null) rmiServer.close();
JMXServiceURL address = getAddress();
String protocol = address.getProtocol();
! ConnectionResolver resolver = ConnectionResolver.newConnectionResolver(protocol, environment);
if (resolver == null) throw new MalformedURLException("Unsupported protocol: " + protocol);
resolver.unbindServer(rmiServer, address, environment);
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.