Oracle8i Application Developer's Guide - Advanced Queuing
Release 2 (8.1.6)

A76938-01

Library

Product

Contents

Index

Prev Up Next

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"

 

Purpose

Create a queue receiver for queues of standard JMS type messages.

Usage Notes

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

Syntax

Example

Example1

/* Create a receiver without a selector */
QueueSession    jms_session
QueueReceiver   receiver;
Queue           queue;

receiver = jms_session.createReceiver(queue);

Example2

/* 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%'");


Prev Up Next
Oracle
Copyright © 1999 Oracle Corporation.

All Rights Reserved.

Library

Product

Contents

Index