Update of /cvsroot/mx4j/mx4j/src/tools/mx4j/tools/remote/soap
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22495/tools/mx4j/tools/remote/soap
Modified Files:
SOAPConnector.java
Log Message:
Starting and stopping explicitely the notification handler
Index: SOAPConnector.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/tools/mx4j/tools/remote/soap/SOAPConnector.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** SOAPConnector.java 24 Feb 2004 02:45:22 -0000 1.14
--- SOAPConnector.java 25 Feb 2004 13:47:31 -0000 1.15
***************
*** 52,66 ****
this.heartbeat = new SOAPHeartBeat(connection, getConnectionNotificationEmitter(), environment);
-
this.notificationHandler = new SOAPRemoteNotificationClientHandler(connection, getConnectionNotificationEmitter(), heartbeat, environment);
this.heartbeat.start();
}
protected void doClose() throws IOException
{
if (heartbeat != null) heartbeat.stop();
- if (notificationHandler != null)
- ((SOAPRemoteNotificationClientHandler)notificationHandler).stop();
if (connection != null) connection.close();
}
--- 52,65 ----
this.heartbeat = new SOAPHeartBeat(connection, getConnectionNotificationEmitter(), environment);
this.notificationHandler = new SOAPRemoteNotificationClientHandler(connection, getConnectionNotificationEmitter(), heartbeat, environment);
this.heartbeat.start();
+ this.notificationHandler.start();
}
protected void doClose() throws IOException
{
+ if (notificationHandler != null) notificationHandler.stop();
if (heartbeat != null) heartbeat.stop();
if (connection != null) connection.close();
}
-------------------------------------------------------
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.