diff options
author | Marc Laukien <marc@zeroc.com> | 2004-08-26 13:00:19 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2004-08-26 13:00:19 +0000 |
commit | 6eee09cec2a6d656dfbf314b246807a9426e4f8c (patch) | |
tree | b175559f170ab1392b280e57e4d26dc436268153 /cpp/demo/Glacier2/callback/CallbackI.cpp | |
parent | single server-side OA (diff) | |
download | ice-6eee09cec2a6d656dfbf314b246807a9426e4f8c.tar.bz2 ice-6eee09cec2a6d656dfbf314b246807a9426e4f8c.tar.xz ice-6eee09cec2a6d656dfbf314b246807a9426e4f8c.zip |
more glacier2
Diffstat (limited to 'cpp/demo/Glacier2/callback/CallbackI.cpp')
-rw-r--r-- | cpp/demo/Glacier2/callback/CallbackI.cpp | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/cpp/demo/Glacier2/callback/CallbackI.cpp b/cpp/demo/Glacier2/callback/CallbackI.cpp index 81ca02eb44b..9946c2bd0b9 100644 --- a/cpp/demo/Glacier2/callback/CallbackI.cpp +++ b/cpp/demo/Glacier2/callback/CallbackI.cpp @@ -23,12 +23,26 @@ void CallbackI::initiateCallback(const CallbackReceiverPrx& proxy, const Current& current) { cout << "initiating callback to: " << current.adapter->getCommunicator()->proxyToString(proxy) << endl; - proxy->callback(current.ctx); + try + { + proxy->callback(current.ctx); + } + catch(const Exception& ex) + { + cout << ex << endl; + } } void CallbackI::shutdown(const Ice::Current& c) { cout << "Shutting down..." << endl; - c.adapter->getCommunicator()->shutdown(); + try + { + c.adapter->getCommunicator()->shutdown(); + } + catch(const Exception& ex) + { + cout << ex << endl; + } } |