cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1186456 - /cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/JMSDestination.java
Date Wed, 19 Oct 2011 20:27:50 GMT
Author: dkulp
Date: Wed Oct 19 20:27:49 2011
New Revision: 1186456

URL: http://svn.apache.org/viewvc?rev=1186456&view=rev
Log:
Try finding the jms listiner via a property

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

Modified: cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/JMSDestination.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/JMSDestination.java?rev=1186456&r1=1186455&r2=1186456&view=diff
==============================================================================
--- cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/JMSDestination.java
(original)
+++ cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/JMSDestination.java
Wed Oct 19 20:27:49 2011
@@ -112,6 +112,11 @@ public class JMSDestination extends Abst
         org.apache.cxf.common.i18n.Message msg = 
             new org.apache.cxf.common.i18n.Message("INSUFFICIENT_CONFIGURATION_DESTINATION",
LOG, name);
         jmsConfig.ensureProperlyConfigured(msg);
+        Object o = ei.getProperty(AbstractMessageListenerContainer.class.getName());
+        if (o instanceof AbstractMessageListenerContainer
+            && jmsConfig.getMessageListenerContainer() == null) {
+            jmsConfig.setMessageListenerContainer((AbstractMessageListenerContainer)o);
+        }
         jmsListener = JMSFactory.createJmsListener(ei, jmsConfig, this, 
                                                    jmsConfig.getTargetDestination());
     }



Mime
View raw message