Previous Topic: Defining JMS Publish JobsNext Topic: JMX Jobs


Defining JMS Subscribe Jobs

You can define a JMS Subscribe (JMSS_JOB) job to consume messages from a queue or topic.

Note: To run these jobs, your system requires CA WA Agent for UNIX, Linux, or Windows and CA WA Agent for Application Services.

JMS Subscribe jobs support the TextMessage and ObjectMessage message types.

Note: The StreamMessage, BytesMessage, and MapMessage message types are not supported.

Required Statements

To define a JMS Subscribe job, you must specify the following statements:

Optional Statements

You can specify the following optional statements for a JMS Subscribe job:

Example: Monitor a Queue on a WebLogic Application Server

This example continuously monitors the queue named Queue (residing on WebLogic) for messages matching the filter criteria. The consumed messages from the queue are stored in the file /export/home/user1/outputfile1. The service provider's URL is t3://172.24.0.0:7001, where 172.24.0.0 is the IP address of the WebLogic Application server and 7001 is the ORB port.

AGENT APPAGENT
INITIAL_CONTEXT weblogic.jndi.WLInitialContextFactory
LOCATION t3://172.24.0.0:7001
CONNECTION_FACTORY ConnectionFactory
DESTNAME Queue CONTINUOUS(a13)
FILTER abc\s...\s[a-zA-Z]+\sFilter![\sa-z0-9]+
TOPIC N
DESTINATION /export/home/user1/outputfile1
JNDIUSER cyberuser

In this example, the regular expression used as the filter criteria can be defined as follows:

abc\s...\s[a-zA-Z]+\sFilter![\sa-z0-9]+
abc\s

Specifies the text abc, followed by white space.

...\s

Specifies any three characters, followed by white space.

[a-zA-Z]+\s

Specifies at least one letter, followed by white space.

Filter![\sa-z0-9]+

Specifies the text Filter!, followed by at least one of the following: white space or digit or lower case letter.

Example: abc vvv B Filter! 95