|Oracle9i Application Developer's Guide - Advanced Queuing
Release 1 (9.0.1)
Part Number A88890-02
AQ Programmatic Environments, 7 of 9
Java Messaging Service (JMS): JMS is a messaging standard defined by Sun Microsystems, Oracle, IBM, and other vendors. JMS is a set of interfaces and associated semantics that define how a JMS client accesses the facilities of an enterprise messaging product.
Oracle Java Messaging Service: Oracle Java Messaging Service provides a Java API for Oracle Advanced Queuing based on the JMS standard. Oracle JMS supports the standard JMS interfaces and has extensions to support the AQ administrative operations and other AQ features that are not a part of the standard.
Standard JMS features include:
Oracle JMS extensions include the following:
AdtMessages. These are stored in the database as Oracle objects and hence the payload of the message can be queried after it is enqueued. Subscriptions can be defined on the contents of these messages as opposed to just the message properties.
Oracle JMS uses JDBC to connect to the database, hence it applications can run as follows:
The standard JMS interfaces are in the javax.jms package.
The Oracle JMS interfaces are in the oracle.jms package.
aqapi.jarusing the loadjava utility.
Users must have EXECUTE privilege on
DBMS_AQIN and DBMS_AQJMS packages in order to use the Oracle JMS interfaces. Users can also acquire these rights through the
AQ_USER_ROLE or the
Users will also need the appropriate system and queue or topic privileges to send or receive messages.
Oracle JMS interfaces are described in detail in the Oracle9i Supplied Java Packages Reference,.