09.12.2012 Views

Advanced Queuing - Oracle

Advanced Queuing - Oracle

Advanced Queuing - Oracle

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Using <strong>Oracle</strong> Java Message Service to Access AQ<br />

For More Information<br />

The <strong>Oracle</strong> JMS interfaces are in the oracle.jms package.<br />

Using OCI8 or Thin JDBC Driver: To use JMS with clients running outside the<br />

<br />

database, you must include the appropriate JDBC driver, JNDI jar files and the<br />

following AQ jar files in your CLASSPATH:<br />

For JDK 1.1 include the following:<br />

<br />

$ORACLE_HOME/rdbms/jlib/jmscommon.jar<br />

$ORACLE_HOME/rdbms/jlib/aqapi11.jar<br />

$ORACLE_HOME/jlib/jndi.jar<br />

$ORACLE_HOME/jdbc/lib/classes111.jar<br />

For JDK 1.2 include the following:<br />

<br />

$ORACLE_HOME/rdbms/jlib/jmscommon.jar<br />

$ORACLE_HOME/rdbms/jlib/aqapi.jar<br />

$ORACLE_HOME/jlib/jndi.jar<br />

$ORACLE_HOME/jdbc/lib/classes12.jar<br />

Using <strong>Oracle</strong> Server Driver in JServer: If your application is running inside the<br />

<br />

JServer, you should be able to access the <strong>Oracle</strong> JMS classes that have been<br />

automatically loaded when the JServer was installed. If these classes are not<br />

available, you may have to load jmscommon.jar followed by aqapi.jar<br />

using the $ORACLE_HOME/rdbms/admin/initjms SQL script.<br />

Privileges<br />

Users must have EXECUTE privilege on the DBMS_AQIN and DBMS_AQJMS<br />

packages to use the <strong>Oracle</strong> JMS interfaces. Users can also acquire these rights<br />

through the AQ_USER_ROLE or the AQ_ADMINSTRATOR_ROLE.<br />

Users will also need the appropriate system and queue or topic privileges to send or<br />

receive messages.<br />

<strong>Oracle</strong> JMS interfaces are described in detail in the <strong>Oracle</strong>9i Supplied Java Packages<br />

Reference.<br />

3-10 <strong>Oracle</strong>9i Application Developer’s Guide - <strong>Advanced</strong> <strong>Queuing</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!