Striim 3.10.1 documentation

Reads data from the Java Message Service.

See Supported reader-parser combinations) for parsing options.

property

type

default value

notes

Compression Type

String

Set to gzip when the input is in gzip format. Otherwise, leave blank.

Connection Factory Name

String

the name of the ConnectionFactory containing the queue or topic

Crash On Unsupported Message Type

Boolean

True

With the default value of True, when JMSReader encounters a message of an unsupported type, the application will crash. Set to False to ignore such messages.

Ctx

String

the JNDI initial context factory name

Durable Subscriber Name

String

Leave blank to create a nondurable subscription. Specify a subscriber name to create a durable subscription.

Provider

String

the path to the JNDI binding

Queue Name

String

leave blank if Topic is specified

Topic

String

leave blank if QueueName is specified

Transaction Policy

String

Specify a message count and/or interval (s / m / h / d) to have the JMS broker group messages as transactions. This will ensure that all messages are processed by JMSReader before they are removed from the queue.

For example, with the settingTransactionPolicy='MessageCount:100, Interval:10s, JMSReader will send a commit message to the broker every ten seconds or sooner if it accumulates 100 messages. If JMSReader is stopped or crashes before sending a commit, the broker will resend the messages in the current transaction when JMSReader is restarted.

When using a transaction policy:

This feature has been tested with ActiveMQ and WebLogic.

User Name

String

a messaging system user with the necessary permissions

The output type is WAevent except when using JSONParser.

The following example is for ActiveMQ:

CREATE SOURCE AMQSource USING JMSReader (
ConnectionFactoryName:'jms/TestConnectionFactory'
Ctx:'org.apache.activemq.jndi.ActiveMQInitialContextFactory',
Provider:'tcp://192.168.123.200:61616',
QueueName:'jms/TestJMSQueue',
) ...