camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1158281 - /camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsProducer.java
Date Tue, 16 Aug 2011 14:08:19 GMT
Author: davsclaus
Date: Tue Aug 16 14:08:19 2011
New Revision: 1158281

URL: http://svn.apache.org/viewvc?rev=1158281&view=rev
Log:
CAMEL-4202: ReplyToType now compliant with JMX

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

Modified: camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsProducer.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsProducer.java?rev=1158281&r1=1158280&r2=1158281&view=diff
==============================================================================
--- camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsProducer.java
(original)
+++ camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsProducer.java
Tue Aug 16 14:08:19 2011
@@ -69,7 +69,7 @@ public class JmsProducer extends Default
                     // validate that replyToType and replyTo is configured accordingly
                     if (endpoint.getReplyToType() != null) {
                         // setting temporary with a fixed replyTo is not supported
-                        if (endpoint.getReplyTo() != null && endpoint.getReplyToType()
== ReplyToType.Temporary) {
+                        if (endpoint.getReplyTo() != null && endpoint.getReplyToType().equals(ReplyToType.Temporary.name()))
{
                             throw new IllegalArgumentException("ReplyToType " + ReplyToType.Temporary
                                     + " is not supported when replyTo " + endpoint.getReplyTo()
+ " is also configured.");
                         }



Mime
View raw message