activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r952654 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/transport/tcp/SslTransportFactory.cpp
Date Tue, 08 Jun 2010 14:06:33 GMT
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 );



Mime
View raw message