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:40:46 UTC
[1/2] camel git commit: Updated Camel-JMS docs
Repository: camel
Updated Branches:
refs/heads/master 76544116f -> 7fd93bb8c
Updated Camel-JMS docs
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/7fd93bb8
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/7fd93bb8
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/7fd93bb8
Branch: refs/heads/master
Commit: 7fd93bb8c1dc4f8049aca94b4fb88236b3a21d30
Parents: 27c29d4
Author: Andrea Cosentino <an...@gmail.com>
Authored: Wed Jun 22 16:40:04 2016 +0200
Committer: Andrea Cosentino <an...@gmail.com>
Committed: Wed Jun 22 16:40:28 2016 +0200
----------------------------------------------------------------------
components/camel-jms/src/main/docs/jms.adoc | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/7fd93bb8/components/camel-jms/src/main/docs/jms.adoc
----------------------------------------------------------------------
diff --git a/components/camel-jms/src/main/docs/jms.adoc b/components/camel-jms/src/main/docs/jms.adoc
index 147c4ea..b157a66 100644
--- a/components/camel-jms/src/main/docs/jms.adoc
+++ b/components/camel-jms/src/main/docs/jms.adoc
@@ -316,6 +316,7 @@ Endpoint options
+
// endpoint options: START
The JMS component supports 83 endpoint options which are listed below:
@@ -385,9 +386,9 @@ The JMS component supports 83 endpoint options which are listed below:
| maxMessagesPerTask | advanced | -1 | int | The number of messages per task. -1 is unlimited. If you use a range for concurrent consumers (eg min max) then this option can be used to set a value to eg 100 to control how fast the consumers will shrink when less work is required.
| messageConverter | advanced | | MessageConverter | To use a custom Spring org.springframework.jms.support.converter.MessageConverter so you can be in control how to map to/from a javax.jms.Message.
| messageCreatedStrategy | advanced | | MessageCreatedStrategy | To use the given MessageCreatedStrategy which are invoked when Camel creates new instances of javax.jms.Message objects when Camel is sending a JMS message.
-| messageIdEnabled | advanced | true | boolean | When sending specifies whether message IDs should be added.
+| messageIdEnabled | advanced | true | boolean | 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
| messageListenerContainerFactory | advanced | | MessageListenerContainerFactory | Registry ID of the MessageListenerContainerFactory used to determine what org.springframework.jms.listener.AbstractMessageListenerContainer to use to consume messages. Setting this will automatically set consumerType to Custom.
-| messageTimestampEnabled | advanced | true | boolean | Specifies whether timestamps should be enabled by default on sending messages.
+| messageTimestampEnabled | advanced | true | boolean | 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
| pubSubNoLocal | advanced | false | boolean | Specifies whether to inhibit the delivery of messages published by its own connection.
| receiveTimeout | advanced | 1000 | long | The timeout for receiving messages (in milliseconds).
| recoveryInterval | advanced | 5000 | long | Specifies the interval between recovery attempts i.e. when a connection is being refreshed in milliseconds. The default is 5000 ms that is 5 seconds.
@@ -417,6 +418,7 @@ The JMS component supports 83 endpoint options which are listed below:
+
[[JMS-MessageMappingbetweenJMSandCamel]]
Message Mapping between JMS and Camel
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2/2] camel git commit: Improved Javadoc about messageIdEnabled and
messageTimestampEnabled in Camel-JMS component
Posted by ac...@apache.org.
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/27c29d4a
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/27c29d4a
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/27c29d4a
Branch: refs/heads/master
Commit: 27c29d4aeac4b7ecba295feeee1a8e111357067a
Parents: 7654411
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:40:28 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/27c29d4a/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 2f20568..57f2ad3 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
@@ -233,10 +233,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)."
@@ -1251,7 +1255,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;
@@ -1262,7 +1267,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;