summaryrefslogtreecommitdiff
path: root/java/demo/Glacier2/callback/Client.java
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2007-08-16 13:59:56 -0230
committerDwayne Boone <dwayne@zeroc.com>2007-08-16 13:59:56 -0230
commit572cfc9e87488ce5c84bde71eaf2b68111679efa (patch)
tree2039a9dfc307765c1cfdf680160283efa261950e /java/demo/Glacier2/callback/Client.java
parentFixed potential on shutdown deadlock in the IceGrid registry (diff)
downloadice-572cfc9e87488ce5c84bde71eaf2b68111679efa.tar.bz2
ice-572cfc9e87488ce5c84bde71eaf2b68111679efa.tar.xz
ice-572cfc9e87488ce5c84bde71eaf2b68111679efa.zip
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=2360 - call destroySession in callback demo
Diffstat (limited to 'java/demo/Glacier2/callback/Client.java')
-rw-r--r--java/demo/Glacier2/callback/Client.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/java/demo/Glacier2/callback/Client.java b/java/demo/Glacier2/callback/Client.java
index 2d70db5fa7c..234da64efce 100644
--- a/java/demo/Glacier2/callback/Client.java
+++ b/java/demo/Glacier2/callback/Client.java
@@ -240,6 +240,21 @@ public class Client extends Ice.Application
}
while(!line.equals("x"));
+ try
+ {
+ router.destroySession();
+ }
+ catch(Glacier2.SessionNotExistException ex)
+ {
+ ex.printStackTrace();
+ }
+ catch(Ice.ConnectionLostException ex)
+ {
+ //
+ // Expected: the router closed the connection.
+ //
+ }
+
return 0;
}