Description:

Creates a JMS Message from the contents of a FlowFile and sends the message to a JMS Server

Tags: jms, send, put

Properties:

In the list below, the names of required properties appear in bold. Anyother properties (not in bold) are considered optional. The table also indicates any default values, whether a property supports the NiFi Expression Language (or simply EL), and whether a property is considered "sensitive", meaning that its value will be encrypted. Before entering a value in a sensitive property, ensure that the nifi.properties file has an entry for the property nifi.sensitive.props.key.

NameDescriptionDefault ValueValid ValuesELSensitive
JMS ProviderThe Provider used for the JMS ServerActiveMQ
  • ActiveMQ
NoNo
URLThe URL of the JMS ServerNoNo
Destination NameThe name of the JMS Topic or queue to useNoNo
Destination TypeThe type of the JMS Destination to useQueue
  • Queue
  • Topic
NoNo
Communications TimeoutThe amount of time to wait when attempting to receive a message before giving up and assuming failure30 secNoNo
Message Batch SizeThe number of messages to pull/push in a single iteration of the processor10NoNo
UsernameUsername used for authentication and authorizationNoNo
PasswordPassword used for authentication and authorizationNoYes
Message TypeThe Type of JMS Message to Constructbyte
  • byte
  • stream
  • text
  • empty
NoNo
Message PriorityThe Priority of the MessageYesNo
Reply-To QueueThe name of the queue to which a reply to should be addedYesNo
Max Buffer SizeThe maximum amount of data that can be buffered for a JMS Message. If a FlowFile's size exceeds this value, the FlowFile will be routed to failure.1 MBNoNo
Message Time to LiveThe amount of time that the message should live on the destination before being removed; if not specified, the message will never expire.NoNo
Copy Attributes to JMS PropertiesWhether or not FlowFile Attributes should be translated into JMS Message Properties. If true, all attributes starting with 'jms.' will be set as Properties on the JMS Message (without the 'jms.' prefix). If an attribute exists that starts with the same value but ends in '.type', that attribute will be used to determine the JMS Message Property type.true
  • true
  • false
NoNo
Client ID PrefixA human-readable ID that can be used to associate connections with yourself so that the maintainers of the JMS Server know who to contact if problems ariseNoNo

Relationships:

NameDescription
failureAll FlowFiles that cannot be routed to the JMS destination are routed to this relationship
successAll FlowFiles that are sent to the JMS destination are routed to this relationship