Oracle9i Application Developer's Guide - Advanced Queuing Release 1 (9.0.1) Part Number A88890-02 |
|
JMS Operational Interface: Basic Operations (Point-to-Point), 22 of 24
Create a queue receiver for queues of standard JMS type messages.
The selector for the QueueReceiver can be any expression that has a combination of one or more of the following:
JMSMessageID = 'ID:23452345
' to retrieve messages that have a specified message ID
JMSPriority < 3 AND JMSCorrelationID = 'Fiction'
color IN ('RED', BLUE', 'GREEN') AND price < 30000
All message IDs must be prefixed with "ID:"
/* Create a receiver without a selector */ QueueSession jms_session QueueReceiver receiver; Queue queue; receiver = jms_session.createReceiver(queue);
/* Create a receiver for queues with a specified selector */ QueueSession jms_session; QueueReceiver receiver; Queue queue; /* create a Receiver to receive messages with correlationID starting with EXP */ browser = jms_session.createReceiver(queue, "JMSCorrelationID LIKE 'EXP%'");
|
Copyright © 1996-2001, Oracle Corporation. All Rights Reserved. |
|