diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2007-08-16 13:59:56 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2007-08-16 13:59:56 -0230 |
commit | 572cfc9e87488ce5c84bde71eaf2b68111679efa (patch) | |
tree | 2039a9dfc307765c1cfdf680160283efa261950e /java/demo/Glacier2/callback/Client.java | |
parent | Fixed potential on shutdown deadlock in the IceGrid registry (diff) | |
download | ice-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.java | 15 |
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; } |