|Oracle8i Application Developer's Guide - Advanced Queuing
Release 2 (8.1.6)
Part Number A76938-01
JMS Operational Interface: Basic Operations (Point-to-Point), 21 of 22
Create a Queue Receiver for Queues of Standard JMS Type Messages
Figure 14-19 Use Case Diagram: Create a Queue Receiver for Queues of Standard JMS Type Messages
To refer to the table of all basic operations having to do with the Operational Interface see:
- "Use Case Model: Operational Interface -- Basic Operations"
Create a queue receiver for queues of standard JMS type messages.
The selector for the QueueReceiver can be one of the following:
a. JMSMessageID = 'ID:2345234523452345' to retrieve messages that have the specified message ID. All message IDs must be prefixed with "ID:"
b. JMSCorrelationID = 'EXPRESS'
c. JMSCorrelationID LIKE 'RE%' to retrieve messages that have a certain correlationID
- Java (JDBC): Oracle8i Supplied Java Packages Reference, oracle.jms, AQjmsSession.createReceiver
/* Create a receiver without a selector */
receiver = jms_session.createReceiver(queue);
/* Create a receiver for queues with a specified selector */
/* create a Receiver to receive messages with correlationID starting with EXP
browser = jms_session.createReceiver(queue, "JMSCorrelationID LIKE 'EXP%'");