Queue Utilities - IBM BJ0NJML - Service And Asset Management Integration Manual

Integration guide
Table of Contents

Advertisement

Queue Utilities

JMS Queue Configuration
Applying selectors splits a queue into smaller queues, each of which contains a
subset of data that each cron task or message-driven bean uses. An error in one
subset of the data does not stop processing in the others in a sequential queue.
While selectors provide flexibility in separating the processing of transactions,
they impair the performance of poll processing. Depending on the volume of
transactions, you might prefer to implement multiple queues instead of one
queue with multiple selectors. Multiple queues typically provide better
performance.
You can add the following statement to the SELECTOR property of the SEQQIN
instance of the JMSQSEQCONSUMER to instruct the cron task to process the
MXPOInterface and MXPRInterface transactions from the corresponding external
system:
SENDER='EXTSYS1' and INTERFACE in ('MXPOInterface',
'MXPRInterface')
Add the following content to the message bean configuration (ejb-jar.xml) to
instruct the message-driven bean to process the MXPOInterface and
MXPRInterface transactions from the corresponding external system:
<message-selector> SENDER='EXTSYS1' AND
('MXPOInterface', 'MXPRInterface')</message-selector>
If two external systems send data to an inbound sequential queue, an error in any
record stops the processing of all transactions in that queue to maintain a
first-in-first-out processing order. Create multiple instances of a cron task, each
with a selector that processes a different external system, to prevent an error in
one system from stopping transactions from the second system.
Ensure that the where clauses in the selectors identify the mutually exclusive sets
of transactions in a sequential queue. Include all the transactions that are inserted
into the queues to ensure that all messages are processed in a first-in-first-out
order.
You can see the properties and the number of messages in a queue, but not the
content of the messages. The system provides the following utilities for viewing
and deleting messages in the queues.
Utility
viewqueue
deletequeue
The viewqueue utility places the data in the view folder under the integration
global directory.
Use the deletequeue utility in a test or development environment. The Message
Reprocessing application provides a mechanism for deleting individual messages
from the production queues.
INTERFACE IN
File
viewqueue.bat and viewqueue.sh
deletequeue.bat and deletequeue.sh
Queue Utilities
173

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents