activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r952248 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/transport/tcp/TcpTransportFactory.cpp
Date Mon, 07 Jun 2010 14:33:08 GMT
Author: tabish
Date: Mon Jun  7 14:33:08 2010
New Revision: 952248

URL: http://svn.apache.org/viewvc?rev=952248&view=rev
Log:
Move the command tracing check to a method that gets invoked from both the failover and non-failover
use case.

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/transport/tcp/TcpTransportFactory.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/transport/tcp/TcpTransportFactory.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/transport/tcp/TcpTransportFactory.cpp?rev=952248&r1=952247&r2=952248&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/transport/tcp/TcpTransportFactory.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/transport/tcp/TcpTransportFactory.cpp
Mon Jun  7 14:33:08 2010
@@ -55,12 +55,6 @@ Pointer<Transport> TcpTransportFactory::
         // Create the Transport for response correlator
         transport.reset( new ResponseCorrelator( transport ) );
 
-        // If command tracing was enabled, wrap the transport with a logging transport.
-        if( properties.getProperty( "transport.commandTracingEnabled", "false" ) == "true"
) {
-            // Create the Transport for response correlator
-            transport.reset( new LoggingTransport( transport ) );
-        }
-
         return transport;
     }
     AMQ_CATCH_RETHROW( ActiveMQException )
@@ -105,6 +99,12 @@ Pointer<Transport> TcpTransportFactory::
             transport.reset( new InactivityMonitor( transport, properties, wireFormat ) );
         }
 
+        // If command tracing was enabled, wrap the transport with a logging transport.
+        if( properties.getProperty( "transport.commandTracingEnabled", "false" ) == "true"
) {
+            // Create the Transport for response correlator
+            transport.reset( new LoggingTransport( transport ) );
+        }
+
         // If there is a negotiator need then we create and wrap here.
         if( wireFormat->hasNegotiator() ) {
             transport = wireFormat->createNegotiator( transport );



Mime
View raw message