mx4j/src/tools/mx4j/tools/remote/soap SOAPConnectorServer.java,1.9,1.10

[email protected]
Newsgroups gmane.comp.java.mx4j.cvs
Message-ID <[email protected]>
Update of /cvsroot/mx4j/mx4j/src/tools/mx4j/tools/remote/soap
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30169/tools/mx4j/tools/remote/soap

Modified Files:
	SOAPConnectorServer.java 
Log Message:
Fix for bug #907629: now using the same classloader mechanism of the provider to lookup the resolver

Index: SOAPConnectorServer.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/tools/mx4j/tools/remote/soap/SOAPConnectorServer.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** SOAPConnectorServer.java	28 Feb 2004 10:54:06 -0000	1.9
--- SOAPConnectorServer.java	1 Mar 2004 18:05:39 -0000	1.10
***************
*** 62,66 ****
        JMXServiceURL address = getAddress();
        String protocol = address.getProtocol();
!       ConnectionResolver resolver = ConnectionResolver.getInstance(protocol);
        if (resolver == null) throw new MalformedURLException("Unsupported protocol: " + protocol);
  
--- 62,67 ----
        JMXServiceURL address = getAddress();
        String protocol = address.getProtocol();
!       Map environment = getEnvironment();
!       ConnectionResolver resolver = ConnectionResolver.newConnectionResolver(protocol, environment);
        if (resolver == null) throw new MalformedURLException("Unsupported protocol: " + protocol);
  
***************
*** 68,72 ****
        MBeanServer server = super.getMBeanServer();
  
-       Map environment = getEnvironment();
        MBeanServer resolvedServer = (MBeanServer)resolver.createServer(address, environment);
        if (resolvedServer == null)
--- 69,72 ----
***************
*** 157,163 ****
  
        String protocol = address.getProtocol();
!       ConnectionResolver resolver = ConnectionResolver.getInstance(protocol);
        if (resolver == null) throw new MalformedURLException("Unsupported protocol: " + protocol);
!       resolver.unbindServer(getMBeanServer(), address, getEnvironment());
  
        try
--- 157,164 ----
  
        String protocol = address.getProtocol();
!       Map environment = getEnvironment();
!       ConnectionResolver resolver = ConnectionResolver.newConnectionResolver(protocol, environment);
        if (resolver == null) throw new MalformedURLException("Unsupported protocol: " + protocol);
!       resolver.unbindServer(getMBeanServer(), address, environment);
  
        try



-------------------------------------------------------
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.