You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2011/08/16 16:08:19 UTC

svn commit: r1158281 - /camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsProducer.java

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.");
                         }