|Oracle8i Application Developer's Guide - Advanced Queuing
Release 2 (8.1.6)
Part Number A76938-01
JMS Operational Interface: Basic Operations (Point-to-Point), 22 of 22
Create a Queue Receiver for Queues of Oracle Object Type (ADT) Messages
Figure 14-20 Use Case Diagram: Create a Queue Receiver for Queues of Oracle Object Type (ADT) 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 oracle object type (ADT) messages.
The CustomDatum factory for a particular java class that maps to the SQL ADT payload can be obtained via the getFactory static method.
- Java (JDBC): Oracle8i Supplied Java Packages Reference, oracle.jms, AQjmsSession.createReceiver
Assume the Queue - test_queue has payload of type SCOTT.EMPLOYEE and the java class that is generated by Jpublisher for this ADT is called Employee. The Employee class implements the CustomDatum interface. The CustomDatumFactory for this class can be obtained by using the Employee.getFactory() method.
/* Create a receiver for a Queue with Adt messages of type EMPLOYEE*/
browser = ((AQjmsSession)jms_session).createReceiver(test_queue,
"JMSCorrelationID = 'MANAGER', Employee.getFactory());