Repository: camel Updated Branches: refs/heads/camel-2.16.x 29ba07489 -> c3d4ad71b
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/c3d4ad71 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/c3d4ad71 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/c3d4ad71 Branch: refs/heads/camel-2.16.x Commit: c3d4ad71b8cc28146bc74479e815e6619327f6d7 Parents: 29ba074 Author: Andrea Cosentino <anco...@gmail.com> Authored: Wed Jun 22 16:38:49 2016 +0200 Committer: Andrea Cosentino <anco...@gmail.com> Committed: Wed Jun 22 16:43:29 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/c3d4ad71/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 3d2738a..0415704 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 @@ -207,10 +207,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)." @@ -1149,7 +1153,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; @@ -1160,7 +1165,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;