geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r447654 - /geronimo/sandbox/gcache/openwire/src/main/java/org/apache/geronimo/openwire/transport/tcp/TcpTransportFactory.java
Date Tue, 19 Sep 2006 00:20:42 GMT
Author: chirino
Date: Mon Sep 18 17:20:41 2006
New Revision: 447654

URL: http://svn.apache.org/viewvc?view=rev&rev=447654
Log:
The wire format negociation is currently only supported when using openwire.  Make sure that
the WireFormat negociator
is only added to the tranport stack if the wire format implementation is an instance of that.

Modified:
    geronimo/sandbox/gcache/openwire/src/main/java/org/apache/geronimo/openwire/transport/tcp/TcpTransportFactory.java

Modified: geronimo/sandbox/gcache/openwire/src/main/java/org/apache/geronimo/openwire/transport/tcp/TcpTransportFactory.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gcache/openwire/src/main/java/org/apache/geronimo/openwire/transport/tcp/TcpTransportFactory.java?view=diff&rev=447654&r1=447653&r2=447654
==============================================================================
--- geronimo/sandbox/gcache/openwire/src/main/java/org/apache/geronimo/openwire/transport/tcp/TcpTransportFactory.java
(original)
+++ geronimo/sandbox/gcache/openwire/src/main/java/org/apache/geronimo/openwire/transport/tcp/TcpTransportFactory.java
Mon Sep 18 17:20:41 2006
@@ -29,6 +29,7 @@
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
+import org.apache.geronimo.openwire.OpenWireFormat;
 import org.apache.geronimo.openwire.wireformat.WireFormat;
 import org.apache.geronimo.openwire.util.IntrospectionSupport;
 import org.apache.geronimo.openwire.util.URISupport;
@@ -84,7 +85,7 @@
         transport = new InactivityMonitor(transport);
 
         // Only need the WireFormatNegotiator if using openwire
-        if( format instanceof WireFormat ) {
+        if( format instanceof OpenWireFormat ) {
             transport = new WireFormatNegotiator(transport, format, tcpTransport.getMinmumWireFormatVersion());
         }
 



Mime
View raw message