From 00828cdec4d65ad5d663510f795bb5470bff4a08 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Tue, 15 Jan 2013 17:17:15 +0000 Subject: [PATCH] Compatibility with slight API change of ActiveMQ (backported from HEAD). --- org.glite.lb.logger-msg/examples/cmsclient.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/org.glite.lb.logger-msg/examples/cmsclient.cpp b/org.glite.lb.logger-msg/examples/cmsclient.cpp index d703cf2..2160272 100644 --- a/org.glite.lb.logger-msg/examples/cmsclient.cpp +++ b/org.glite.lb.logger-msg/examples/cmsclient.cpp @@ -79,7 +79,7 @@ public: this->clientAck = clientAck; } - virtual ~SimpleAsyncConsumer(){ + virtual ~SimpleAsyncConsumer() throw() { this->cleanup(); } @@ -132,7 +132,7 @@ public: } // Called from the consumer since this class is a registered MessageListener. - virtual void onMessage( const Message* message ){ + virtual void onMessage( const Message* message ) throw() { static int count = 0; @@ -157,6 +157,10 @@ public: fflush(outputfile); } catch (CMSException& e) { e.printStackTrace(); + } catch (Exception& e) { + e.printStackTrace(); + } catch (...) { + fprintf(stderr, "Unknown Exception occurred.\n"); } } -- 1.8.2.3