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/07 16:33:08 UTC
svn commit: r952248 -
/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/transport/tcp/TcpTransportFactory.cpp
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 );