You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2016/06/22 14:42:56 UTC

camel git commit: Improved Javadoc about messageIdEnabled and messageTimestampEnabled in Camel-JMS component

Repository: camel
Updated Branches:
  refs/heads/camel-2.17.x 1192cbd2d -> 164512979


Improved Javadoc about messageIdEnabled and messageTimestampEnabled in Camel-JMS component


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/16451297
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/16451297
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/16451297

Branch: refs/heads/camel-2.17.x
Commit: 164512979b76d5138c9c875eab29ac16e8306958
Parents: 1192cbd
Author: Andrea Cosentino <an...@gmail.com>
Authored: Wed Jun 22 16:38:49 2016 +0200
Committer: Andrea Cosentino <an...@gmail.com>
Committed: Wed Jun 22 16:41:22 2016 +0200

----------------------------------------------------------------------
 .../apache/camel/component/jms/JmsConfiguration.java  | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/16451297/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsConfiguration.java b/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsConfiguration.java
index 7965014..ffae609 100644
--- a/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsConfiguration.java
+++ b/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsConfiguration.java
@@ -216,10 +216,14 @@ public class JmsConfiguration implements Cloneable {
             description = "Specifies whether Camel should auto map the received JMS message to a suited payload type, such as javax.jms.TextMessage to a String etc.")
     private boolean mapJmsMessage = true;
     @UriParam(defaultValue = "true", label = "advanced",
-            description = "When sending, specifies whether message IDs should be added.")
+            description = "When sending, specifies whether message IDs should be added. This is just an hint to the JMS broker." 
+                    + "If the JMS provider accepts this hint, these messages must have the message ID set to null; if the provider ignores the hint, " 
+                    + "the message ID must be set to its normal unique value")
     private boolean messageIdEnabled = true;
     @UriParam(defaultValue = "true", label = "advanced",
-            description = "Specifies whether timestamps should be enabled by default on sending messages.")
+            description = "Specifies whether timestamps should be enabled by default on sending messages. This is just an hint to the JMS broker."
+                    + "If the JMS provider accepts this hint, these messages must have the timestamp set to zero; if the provider ignores the hint " 
+                    + "the timestamp must be set to its normal value")
     private boolean messageTimestampEnabled = true;
     @UriParam(defaultValue = "" + Message.DEFAULT_PRIORITY, enums = "1,2,3,4,5,6,7,8,9", label = "producer",
             description = "Values greater than 1 specify the message priority when sending (where 0 is the lowest priority and 9 is the highest)."
@@ -1189,7 +1193,8 @@ public class JmsConfiguration implements Cloneable {
     }
 
     /**
-     * When sending, specifies whether message IDs should be added.
+     * When sending, specifies whether message IDs should be added. This is just an hint to the JMS Broker.
+     * If the JMS provider accepts this hint, these messages must have the message ID set to null; if the provider ignores the hint, the message ID must be set to its normal unique value
      */
     public void setMessageIdEnabled(boolean messageIdEnabled) {
         this.messageIdEnabled = messageIdEnabled;
@@ -1200,7 +1205,8 @@ public class JmsConfiguration implements Cloneable {
     }
 
     /**
-     * Specifies whether timestamps should be enabled by default on sending messages.
+     * Specifies whether timestamps should be enabled by default on sending messages. This is just an hint to the JMS Broker.
+     * If the JMS provider accepts this hint, these messages must have the timestamp set to zero; if the provider ignores the hint, the timestamp must be set to its normal value
      */
     public void setMessageTimestampEnabled(boolean messageTimestampEnabled) {
         this.messageTimestampEnabled = messageTimestampEnabled;