Description:
This processor creates a JMS message from the contents of a FlowFile and sends the message to a JMS server.
Properties:
In the list below, the names of required properties appear in bold. Any other properties (not in bold) are considered optional. If a property has a default value, it is indicated. If a property supports the use of the NiFi Expression Language (or simply, "expression language"), that is also indicated.
- JMS Provider
- This property specifies the provider used for the JMS server. Available options include:
- Default value: ActiveMQ
- Supports expression language: false
- URL
- The URL of the JMS server.
- Default value: no default
- Supports expression language: false
- Destination Name
- The name of the JMS topic of queue to use.
- Default value: no default
- Supports expression language: false
- Destination Type
- The type of JMS Destination to use. Options are Queue and Topic.
- Default value: Queue
- Supports expression language: false
- Communications Timeout
- The amount of time to wait when attempting to receive a message before giving up and assuming failure.
- Default value: 30 sec
- Supports expression language: false
- Batch Size
- The number of messages to Put in a single iteration of the processor
- Default value: 10
- Supports expression language: false
- Username
- The username used for authentication and authorization.
- Default value: no default
- Supports expression language: false
- Password
- The password used for authentication and authorization.
- Default value: no default
- Supports expression language: false
- Message Type
- The type of JMS message to construct. Available options include:
- Default value: byte
- Supports expression language: false
- Message Priority
- The priority of the message.
- Default value: no default
- Supports expression language: true
- Reply-to Queue
- The name of the queue to which a reply should be added.
- Default value: no default
- Supports expression language: true
- Max Buffer Size
- The maximum amount of data that can be buffered for a JMS message. If a FlowFile's size exceeds this value, it will be routed to failure.
- Default value: 1 MB
- Supports expression language: false
- Message Time to Live
- The amount of time that the message should live on the destination before being removed; if not specified, the message will never expire.
- Default value: no default
- Supports expression language: false
- Copy Attributes to JMS Properties
- A Boolean value (true/false), indicating whether 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.
- Default value: true
- Supports expression language: false
- Client ID Prefix
- A 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 arise.
- Default value: no default
- Supports expression language: false
Relationships:
- failure
- If something prevents a FlowFile from being routed to the JMS destination, then it follows this relationship.
- success
- If a FlowFile is successfully routed to the JMS destination, then it follows this relationship.