NIFI-3672 updated PublishJMS message property docs

This closes #2949

Signed-off-by: Brandon Devries <[email protected]>


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

Branch: refs/heads/master
Commit: 4f538f1ecb8e73859e8875bff10ab18971897180
Parents: 66eeb48
Author: Mike Moser <[email protected]>
Authored: Tue Aug 14 18:55:10 2018 +0000
Committer: Brandon Devries <[email protected]>
Committed: Tue Oct 2 09:39:17 2018 -0400

----------------------------------------------------------------------
 .../main/java/org/apache/nifi/jms/processors/PublishJMS.java   | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/nifi/blob/4f538f1e/nifi-nar-bundles/nifi-jms-bundle/nifi-jms-processors/src/main/java/org/apache/nifi/jms/processors/PublishJMS.java
----------------------------------------------------------------------
diff --git 
a/nifi-nar-bundles/nifi-jms-bundle/nifi-jms-processors/src/main/java/org/apache/nifi/jms/processors/PublishJMS.java
 
b/nifi-nar-bundles/nifi-jms-bundle/nifi-jms-processors/src/main/java/org/apache/nifi/jms/processors/PublishJMS.java
index f58b9cf..3afa0f0 100644
--- 
a/nifi-nar-bundles/nifi-jms-bundle/nifi-jms-processors/src/main/java/org/apache/nifi/jms/processors/PublishJMS.java
+++ 
b/nifi-nar-bundles/nifi-jms-bundle/nifi-jms-processors/src/main/java/org/apache/nifi/jms/processors/PublishJMS.java
@@ -72,7 +72,11 @@ import org.springframework.jms.support.JmsHeaders;
         @ReadsAttribute(attribute = JmsHeaders.TYPE, description = "This 
attribute becomes the JMSType message header. Must be an integer."),
         @ReadsAttribute(attribute = JmsHeaders.REPLY_TO, description = "This 
attribute becomes the JMSReplyTo message header. Must be an integer."),
         @ReadsAttribute(attribute = JmsHeaders.DESTINATION, description = 
"This attribute becomes the JMSDestination message header. Must be an 
integer."),
-        @ReadsAttribute(attribute = "other attributes", description = "All 
other attributes that do not start with " + JmsHeaders.PREFIX + " are added as 
message properties.")
+        @ReadsAttribute(attribute = "other attributes", description = "All 
other attributes that do not start with " + JmsHeaders.PREFIX + " are added as 
message properties."),
+        @ReadsAttribute(attribute = "other attributes .type", description = 
"When an attribute will be added as a message property, a second attribute of 
the same name but with an extra"
+        + " `.type` at the end will cause the message property to be sent 
using that strong type. For example, attribute `delay` with value `12000` and 
another attribute"
+        + " `delay.type` with value `integer` will cause a JMS message 
property `delay` to be sent as an Integer rather than a String. Supported types 
are boolean, byte,"
+        + " short, integer, long, float, double, and string (which is the 
default).")
 })
 @SeeAlso(value = { ConsumeJMS.class, JMSConnectionFactoryProvider.class })
 @SystemResourceConsideration(resource = SystemResource.MEMORY)

Reply via email to