Author: tabish
Date: Mon May 19 08:25:16 2008
New Revision: 657850
URL: http://svn.apache.org/viewvc?rev=657850&view=rev
Log:
cleaning up for release
Modified:
activemq/activemq-cpp/trunk/src/examples/main.cpp
Modified: activemq/activemq-cpp/trunk/src/examples/main.cpp
URL:
http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/examples/main.cpp?rev=657850&r1=657849&r2=657850&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/examples/main.cpp (original)
+++ activemq/activemq-cpp/trunk/src/examples/main.cpp Mon May 19 08:25:16 2008
@@ -275,7 +275,9 @@
}
// Commit all messages.
- session->commit();
+ if( this->sessionTransacted ) {
+ session->commit();
+ }
// No matter what, tag the count down latch until done.
doneLatch.countDown();