cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cschnei...@apache.org
Subject svn commit: r739876 - /cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/JMSConfiguration.java
Date Sun, 01 Feb 2009 22:46:09 GMT
Author: cschneider
Date: Sun Feb  1 22:46:09 2009
New Revision: 739876

URL: http://svn.apache.org/viewvc?rev=739876&view=rev
Log:
CXF-2018 Avoid wrapping a SingleConnectionFactory to make the config downwards compatible

Modified:
    cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/JMSConfiguration.java

Modified: cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/JMSConfiguration.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/JMSConfiguration.java?rev=739876&r1=739875&r2=739876&view=diff
==============================================================================
--- cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/JMSConfiguration.java
(original)
+++ cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/JMSConfiguration.java
Sun Feb  1 22:46:09 2009
@@ -373,7 +373,7 @@
             if (connectionFactory == null) {
                 connectionFactory = JMSFactory.getConnectionFactoryFromJndi(this);
             }
-            if (wrapInSingleConnectionFactory) {
+            if (wrapInSingleConnectionFactory && !(connectionFactory instanceof SingleConnectionFactory))
{
                 if (useJms11) {
                     wrappedConnectionFactory = new SingleConnectionFactory(connectionFactory);
                 } else {



Mime
View raw message