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/08 16:06:33 UTC

svn commit: r952654 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/transport/tcp/SslTransportFactory.cpp

Author: tabish
Date: Tue Jun  8 14:06:33 2010
New Revision: 952654

URL: http://svn.apache.org/viewvc?rev=952654&view=rev
Log:
Allow commands to be logged from the SSL Transport.

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

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/transport/tcp/SslTransportFactory.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/transport/tcp/SslTransportFactory.cpp?rev=952654&r1=952653&r2=952654&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/transport/tcp/SslTransportFactory.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/transport/tcp/SslTransportFactory.cpp Tue Jun  8 14:06:33 2010
@@ -21,6 +21,7 @@
 
 #include <activemq/transport/IOTransport.h>
 #include <activemq/transport/inactivity/InactivityMonitor.h>
+#include <activemq/transport/logging/LoggingTransport.h>
 
 #include <memory>
 
@@ -28,6 +29,7 @@ using namespace std;
 using namespace activemq;
 using namespace activemq::io;
 using namespace activemq::transport;
+using namespace activemq::transport::logging;
 using namespace activemq::transport::inactivity;
 using namespace activemq::transport::tcp;
 using namespace activemq::exceptions;
@@ -58,6 +60,12 @@ Pointer<Transport> SslTransportFactory::
             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 );