Oracle9i Application Developer's Guide - Advanced Queuing
Release 1 (9.0.1)

Part Number A88890-02
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to beginning of chapter Go to next page

JMS Operational Interface: Basic Operations (Publish-Subscribe), 35 of 37


Creating a Topic Browser for Topics of Oracle Object Type (ADT) Messages

Figure 15-33 Use Case Diagram: Create a Topic Browser for Topics of Oracle Object Type (ADT) Messages


Text description of adq15jps20.gif follows
Text description of the illustration adq15jps20.gif


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 topic browser for topics of Oracle object type (ADT) messages.

Usage Notes

For topics containing AdtMessages, the selector for TopicBrowser can be a SQL expression on the message payload contents or messageID or priority or correlationID.

Syntax

Example

The CustomDatum factory for a particular Java class that maps to the SQL ADT payload can be obtained via the getFactory static method. Assume the Topic - test_topic 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 browser for a Topic with Adt messages of type EMPLOYEE*/
TopicSession jms_session
TopicBrowser browser;
Topic        test_topic;

browser = ((AQjmsSession) jms_session).createBrowser(test_topic,
    "SUBS1", Employee.getFactory());

Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2001, Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback