You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2007/10/19 15:46:13 UTC
svn commit: r586452 -
/activemq/activemq-cpp/trunk/src/main/activemq/connector/openwire/OpenWireFormatFactory.cpp
Author: tabish
Date: Fri Oct 19 06:46:13 2007
New Revision: 586452
URL: http://svn.apache.org/viewvc?rev=586452&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQCPP-142
Added the support for negotiating the version of openwire which now support V1 and V2
Modified:
activemq/activemq-cpp/trunk/src/main/activemq/connector/openwire/OpenWireFormatFactory.cpp
Modified: activemq/activemq-cpp/trunk/src/main/activemq/connector/openwire/OpenWireFormatFactory.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/connector/openwire/OpenWireFormatFactory.cpp?rev=586452&r1=586451&r2=586452&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/connector/openwire/OpenWireFormatFactory.cpp (original)
+++ activemq/activemq-cpp/trunk/src/main/activemq/connector/openwire/OpenWireFormatFactory.cpp Fri Oct 19 06:46:13 2007
@@ -19,6 +19,7 @@
#include <activemq/connector/openwire/OpenWireFormat.h>
#include <activemq/util/Boolean.h>
+#include <activemq/util/Integer.h>
using namespace std;
using namespace activemq;
@@ -38,7 +39,8 @@
WireFormatInfo* info = new WireFormatInfo();
// Configure the version to use
- info->setVersion( 2 );
+ info->setVersion( Integer::parseInt(
+ properties.getProperty( "wireFormat.version", "2" ) ) );
// parse params out of the properties
info->setStackTraceEnabled( Boolean::parseBoolean(