User: hiram
Date: 00/11/10 12:08:03
Modified: src/java/org/spydermq/distributed
ConnectionReceiverFactory.java
Log:
FIX: the dc.cr (ConnectionReciver) is not allways a Remote object.
Revision Changes Path
1.6 +10 -4
spyderMQ/src/java/org/spydermq/distributed/ConnectionReceiverFactory.java
Index: ConnectionReceiverFactory.java
===================================================================
RCS file:
/products/cvs/ejboss/spyderMQ/src/java/org/spydermq/distributed/ConnectionReceiverFactory.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- ConnectionReceiverFactory.java 2000/06/20 02:19:11 1.5
+++ ConnectionReceiverFactory.java 2000/11/10 20:08:03 1.6
@@ -20,7 +20,7 @@
*
* @author Norbert Lataille ([EMAIL PROTECTED])
*
- * @version $Revision: 1.5 $
+ * @version $Revision: 1.6 $
*/
public class ConnectionReceiverFactory
{
@@ -38,7 +38,13 @@
public static void close(SpyDistributedConnection dc) throws Exception
{
- dc.cr.close();
- UnicastRemoteObject.unexportObject((Remote)dc.cr,true);
- }
+ dc.cr.close();
+
+ // HRC: Check to see if the dc.cr really is a Remote object
+ // You have this case when using the RMI Receiver classes
+ if( dc.cr instanceof Remote ) {
+ UnicastRemoteObject.unexportObject((Remote)dc.cr,true);
+ }
+
+ }
}