Red Hat Training

A Red Hat training course is available for Red Hat Fuse

Chapter 10. jms

10.1. jms:browse

10.1.1. Description

Browse a JMS queue

10.1.2. Syntax

jms:browse [options] connectionFactory queue

10.1.3. Arguments

NameDescription

connectionFactory

The JMS connection factory name

queue

The JMS queue to browse

10.1.4. Options

NameDescription

--help

Display this help message

-v, --verbose

Display JMS properties

-s, --selector

The selector to select the messages to browse

-p, --password

Password to connect to the JMS broker

-u, --username

Username to connect to the JMS broker

10.2. jms:connectionfactories

10.2.1. Description

List the JMS connection factories

10.2.2. Syntax

jms:connectionfactories [options]

10.2.3. Options

NameDescription

--help

Display this help message

10.3. jms:consume

10.3.1. Description

Consume messages from a JMS queue.

10.3.2. Syntax

jms:consume [options] connectionFactory queue

10.3.3. Arguments

NameDescription

connectionFactory

The JMS connection factory name

queue

The JMS queue where to consume messages

10.3.4. Options

NameDescription

--help

Display this help message

-s, --selector

The selector to use to select the messages to consume

-p, --password

Password to connect to the JMS broker

-u, --username

Username to connect to the JMS broker

10.4. jms:count

10.4.1. Description

Count the number of messages on a JMS queue.

10.4.2. Syntax

jms:count [options] connectionFactory queue

10.4.3. Arguments

NameDescription

connectionFactory

The JMS connection factory name

queue

The JMS queue name

10.4.4. Options

NameDescription

--help

Display this help message

-p, --password

Password to connect to the JMS broker

-u, --username

Username to connect to the JMS broker

10.5. jms:create

10.5.1. Description

Create a JMS connection factory.

10.5.2. Syntax

jms:create [options] name

10.5.3. Arguments

NameDescription

name

The JMS connection factory name

10.5.4. Options

NameDescription

--help

Display this help message

-t, --type

The JMS connection factory type (ActiveMQ, Artemis or WebsphereMQ)

--url

URL of the JMS broker. For WebsphereMQ type, the URL is hostname/port/queuemanager/channel

-p, --password

Password to connect to the JMS broker

-u, --username

Username to connect to the JMS broker

10.6. jms:delete

10.6.1. Description

Delete a JMS connection factory

10.6.2. Syntax

jms:delete [options] name

10.6.3. Arguments

NameDescription

name

The JMS connection factory name

10.6.4. Options

NameDescription

--help

Display this help message

10.7. jms:info

10.7.1. Description

Provides details about a JMS connection factory.

10.7.2. Syntax

jms:info [options] connectionFactory

10.7.3. Arguments

NameDescription

connectionFactory

The JMS connection factory name

10.7.4. Options

NameDescription

--help

Display this help message

-p, --password

Password to connect to the JMS broker

-u, --username

Username to connect to the JMS broker

10.8. jms:move

10.8.1. Description

Move messages from one JMS queue to another one.

10.8.2. Syntax

jms:move [options] connectionFactory source destination

10.8.3. Arguments

NameDescription

connectionFactory

The JMS connection factory name

source

The source JMS queue

destination

The destination JMS queue

10.8.4. Options

NameDescription

--help

Display this help message

-s, --selector

Selector to move only some messages

-p, --password

Password to connect to the JMS broker

-u, --username

Username to connect to the JMS broker

10.9. jms:queues

10.9.1. Description

List the JMS queues.

10.9.2. Syntax

jms:queues [options] connectionFactory

10.9.3. Arguments

NameDescription

connectionFactory

The JMS connection factory name

10.9.4. Options

NameDescription

--help

Display this help message

-p, --password

Password to connect to the JMS broker

-u, --username

Username to connect to the JMS broker

10.10. jms:send

10.10.1. Description

Send a message to

10.10.2. Syntax

jms:send [options] connectionFactory queue message

10.10.3. Arguments

NameDescription

connectionFactory

The JMS connection factory name

queue

The JMS queue name

message

The JMS message content

10.10.4. Options

NameDescription

--help

Display this help message

-r, --replyTo

Set the message ReplyTo

-p, --password

Password to connect to the JMS broker

-u, --username

Username to connect to the JMS broker

10.11. jms:topics

10.11.1. Description

List the JMS topics.

10.11.2. Syntax

jms:topics [options] connectionFactory

10.11.3. Arguments

NameDescription

connectionFactory

The JMS connection factory name

10.11.4. Options

NameDescription

--help

Display this help message

-p, --password

Password to connect to the JMS broker

-u, --username

Username to connect to the JMS broker