activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r580495 - /activemq/trunk/activemq-optional/src/main/java/org/apache/activemq/transport/http/HttpTransportFactory.java
Date Fri, 28 Sep 2007 22:00:04 GMT
Author: chirino
Date: Fri Sep 28 15:00:03 2007
New Revision: 580495

URL: http://svn.apache.org/viewvc?rev=580495&view=rev
Log:
Rolled back HttpTransportFactory to fix compile issue

Modified:
    activemq/trunk/activemq-optional/src/main/java/org/apache/activemq/transport/http/HttpTransportFactory.java

Modified: activemq/trunk/activemq-optional/src/main/java/org/apache/activemq/transport/http/HttpTransportFactory.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-optional/src/main/java/org/apache/activemq/transport/http/HttpTransportFactory.java?rev=580495&r1=580494&r2=580495&view=diff
==============================================================================
--- activemq/trunk/activemq-optional/src/main/java/org/apache/activemq/transport/http/HttpTransportFactory.java
(original)
+++ activemq/trunk/activemq-optional/src/main/java/org/apache/activemq/transport/http/HttpTransportFactory.java
Fri Sep 28 15:00:03 2007
@@ -22,7 +22,7 @@
 
 import org.apache.activemq.transport.Transport;
 import org.apache.activemq.transport.TransportFactory;
-import org.apache.activemq.transport.TransportLoggerFactory;
+import org.apache.activemq.transport.TransportLogger;
 import org.apache.activemq.transport.TransportServer;
 import org.apache.activemq.transport.util.TextWireFormat;
 import org.apache.activemq.transport.xstream.XStreamWireFormat;
@@ -59,14 +59,10 @@
     }
 
     public Transport compositeConfigure(Transport transport, WireFormat format, Map options)
{
-        HttpClientTransport httpTransport = (HttpClientTransport) super.compositeConfigure(transport,
format, options);
+        HttpClientTransport httpTransport = (HttpClientTransport)super.compositeConfigure(transport,
format, options);
         transport = httpTransport;
-        if( httpTransport.isTrace() ) {
-            try {
-                transport = TransportLoggerFactory.getInstance().createTransportLogger(transport);
-            } catch (Throwable e) {
-                LOG.error("Could not create TransportLogger object for: " + TransportLoggerFactory.defaultLogWriterName
+ ", reason: " + e, e);
-            }
+        if (httpTransport.isTrace()) {
+            transport = new TransportLogger(httpTransport);
         }
         return transport;
     }



Mime
View raw message