09.12.2012 Views

Advanced Queuing - Oracle

Advanced Queuing - Oracle

Advanced Queuing - Oracle

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Creating a Queue Connection with an Open <strong>Oracle</strong>OCIConnection Pool<br />

Purpose<br />

Create a queue connection with an open <strong>Oracle</strong>OCIConnectionPool.<br />

Usage notes<br />

This is a static method.<br />

Syntax<br />

Java (JDBC): <strong>Oracle</strong>9i Supplied Java Packages Reference oracle.jms,<br />

AQjmsQueueConnectionFactory.createQueueConnection<br />

Example<br />

This method may be used if the user wants to use an existing<br />

<strong>Oracle</strong>OCIConnectionPool instance for JMS operations. In this case JMS will<br />

not open an new <strong>Oracle</strong>OCIConnectionPool instance, but instead use the<br />

supplied <strong>Oracle</strong>OCIConnectionPool instance to create the JMS<br />

QueueConnection object.<br />

<strong>Oracle</strong>OCIConnectionPool cpool; /* previously created <strong>Oracle</strong>OCIConnectionPool */<br />

QueueConnection qc_conn =<br />

AQjmsQueueConnectionFactory.createQueueConnection(cpool);<br />

14-8 <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!