mx4j/src/core/javax/management/remote/rmi RMIConnector.java,1.20,1.21

[email protected]
Newsgroups gmane.comp.java.mx4j.cvs
Message-ID <[email protected]>
Update of /cvsroot/mx4j/mx4j/src/core/javax/management/remote/rmi
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19956/core/javax/management/remote/rmi

Modified Files:
	RMIConnector.java 
Log Message:
Starting and stopping explicitely the notification handler

Index: RMIConnector.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/core/javax/management/remote/rmi/RMIConnector.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** RMIConnector.java	24 Feb 2004 02:45:00 -0000	1.20
--- RMIConnector.java	25 Feb 2004 13:34:33 -0000	1.21
***************
*** 123,134 ****
  
           connected = true;
- 
           this.connectionId = connection.getConnectionId();
  
           this.heartbeat = new RMIHeartBeat(connection, emitter, env);
- 
           this.notificationHandler = new RMIRemoteNotificationClientHandler(connection, emitter, heartbeat, env);
  
           this.heartbeat.start();
        }
  
--- 123,133 ----
  
           connected = true;
           this.connectionId = connection.getConnectionId();
  
           this.heartbeat = new RMIHeartBeat(connection, emitter, env);
           this.notificationHandler = new RMIRemoteNotificationClientHandler(connection, emitter, heartbeat, env);
  
           this.heartbeat.start();
+          this.notificationHandler.start();
        }
  
***************
*** 144,153 ****
           closed = true;
  
           if (heartbeat != null) heartbeat.stop();
-          
-          if (notificationHandler != null) 
-          	((RMIRemoteNotificationClientHandler)notificationHandler).stop();
- 
           if (connection != null) connection.close();
           connection = null;
           rmiServer = null;
--- 143,150 ----
           closed = true;
  
+          if (notificationHandler != null) notificationHandler.stop();
           if (heartbeat != null) heartbeat.stop();
           if (connection != null) connection.close();
+ 
           connection = null;
           rmiServer = null;



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