camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r757730 - /camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsBinding.java
Date Tue, 24 Mar 2009 11:16:34 GMT
Author: davsclaus
Date: Tue Mar 24 11:16:33 2009
New Revision: 757730

URL: http://svn.apache.org/viewvc?rev=757730&view=rev
Log:
CAMEL-1461: JMSProducer only sets JMSReplyTo if exchange is out capable. Fixed a NPE.

Modified:
    camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsBinding.java

Modified: camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsBinding.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsBinding.java?rev=757730&r1=757729&r2=757730&view=diff
==============================================================================
--- camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsBinding.java
(original)
+++ camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsBinding.java
Tue Mar 24 11:16:33 2009
@@ -255,9 +255,8 @@
                     // only set the JMSReply if the Exchange supports Out
                     jmsMessage.setJMSReplyTo(ExchangeHelper.convertToType(exchange, Destination.class,
headerValue));
                 } else {
-                    if (LOG.isDebugEnabled()) {
-                        LOG.debug("Exchange is not out capable, Ignoring JMSReplyTo: " +
headerValue);
-                    }
+                    // warn we got a JMSReplyTo but the Exchange is not out capable
+                    LOG.warn("Exchange is not out capable, Ignoring JMSReplyTo: " + headerValue);
                 }
             } else if (headerName.equals("JMSType")) {
                 jmsMessage.setJMSType(ExchangeHelper.convertToType(exchange, String.class,
headerValue));



Mime
View raw message