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.

Getting the Underlying <strong>Oracle</strong>OCIConnectionPool from a JMS Connection<br />

Examples<br />

See Chapter 3, "AQ Programmatic Environments" for a list of available functions in<br />

each programmatic environment.<br />

java.sql.Connection db_conn;<br />

QueueSession jms_sess;<br />

db_conn = ((AQjmsSession)jms_sess).getDBConnection();<br />

Getting the Underlying <strong>Oracle</strong>OCIConnectionPool from a JMS<br />

Connection<br />

Figure 16–6 Getting the Underlying <strong>Oracle</strong>OCIConnectionPool from a JMS Connection<br />

User/<br />

Program<br />

JMS Operational Interface - AQjmsSession :<br />

GETTING the Underlying JDBC Connection from a JMS Session<br />

GET<br />

the <strong>Oracle</strong>OCI-<br />

Connection-<br />

Pool<br />

See Also:<br />

getOCIConnectionPool from a JMS Connection<br />

Table 16–1 for a list of basic operations in the JMS shared<br />

<br />

operational interface<br />

"Class - oracle.jms.AQjmsSession" on page B-53<br />

Purpose<br />

Get the underlying <strong>Oracle</strong>OCIConnectionPool from a JMS connection.<br />

Usage Notes<br />

This method is used to obtain the underlying <strong>Oracle</strong>OCIConnectionPool<br />

instance from a JMS connection. The settings of the <strong>Oracle</strong>OCIConnectionPool<br />

instance may be tuned by the user depending on the connection usage, for example,<br />

the number of sessions the user wants to create using the given connection. The<br />

JMS Operational Interface: Basic Operations (Shared Interfaces) 16-11

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

Saved successfully!

Ooh no, something went wrong!