activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r959334 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/WireFormatInfo.cpp
Date Wed, 30 Jun 2010 14:36:49 GMT
Author: tabish
Date: Wed Jun 30 14:36:49 2010
New Revision: 959334

URL: http://svn.apache.org/viewvc?rev=959334&view=rev
Log:
Disable setting the cache enabled property to on.

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/WireFormatInfo.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/WireFormatInfo.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/WireFormatInfo.cpp?rev=959334&r1=959333&r2=959334&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/WireFormatInfo.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/WireFormatInfo.cpp
Wed Jun 30 14:36:49 2010
@@ -248,7 +248,7 @@ void WireFormatInfo::setTcpNoDelayEnable
 bool WireFormatInfo::isCacheEnabled() const {
 
     try {
-        return properties.getBool( "CacheEnabled" );
+        return false;
     }
     AMQ_CATCH_NOTHROW( exceptions::ActiveMQException )
     AMQ_CATCHALL_NOTHROW()
@@ -257,10 +257,11 @@ bool WireFormatInfo::isCacheEnabled() co
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void WireFormatInfo::setCacheEnabled( bool cacheEnabled ) {
+void WireFormatInfo::setCacheEnabled( bool cacheEnabled AMQCPP_UNUSED ) {
 
     try {
-        properties.setBool( "CacheEnabled", cacheEnabled );
+        // Turning this on is not supported as it causes the client to not work.
+        properties.setBool( "CacheEnabled", false );
     }
     AMQ_CATCH_NOTHROW( exceptions::ActiveMQException )
     AMQ_CATCHALL_NOTHROW()



Mime
View raw message