mx4j/src/tools/mx4j/tools/remote/local LocalConnectorServer.java,1.5,1.6

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

Modified Files:
	LocalConnectorServer.java 
Log Message:
Splitting unbindServer() into unbindServer() + destroyServer()

Index: LocalConnectorServer.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/tools/mx4j/tools/remote/local/LocalConnectorServer.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** LocalConnectorServer.java	1 Mar 2004 18:05:39 -0000	1.5
--- LocalConnectorServer.java	18 Jul 2004 21:20:27 -0000	1.6
***************
*** 13,17 ****
  import java.util.HashMap;
  import java.util.Map;
- 
  import javax.management.MBeanServer;
  import javax.management.remote.JMXServiceURL;
--- 13,16 ----
***************
*** 106,110 ****
        ConnectionResolver resolver = ConnectionResolver.newConnectionResolver(protocol, environment);
        if (resolver == null) throw new MalformedURLException("Unsupported protocol: " + protocol);
!       resolver.unbindServer(getMBeanServer(), address, environment);
  
        unregister(address);
--- 105,111 ----
        ConnectionResolver resolver = ConnectionResolver.newConnectionResolver(protocol, environment);
        if (resolver == null) throw new MalformedURLException("Unsupported protocol: " + protocol);
!       MBeanServer server = getMBeanServer();
!       resolver.unbindServer(server, address, environment);
!       resolver.destroyServer(server, address, environment);
  
        unregister(address);



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&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.