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 2010/06/30 16:36:49 UTC

svn commit: r959334 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/WireFormatInfo.cpp

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()