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 Ping Period for the Exception Listener<br />

Usage Notes<br />

If an exception listener is set for the connection, the connection pings the database<br />

periodically to ensure that the database is accessible. The period is specified in<br />

milliseconds. The default value is 2 minutes. If an exception listener is not set for the<br />

connection, the database is not pinged. This method will return the value of the<br />

period set by the last call to setPingPeriod. If setPingPeriod was never<br />

called, then the default value is returned<br />

Syntax<br />

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

each programmatic environment. Use the following syntax references for each<br />

programmatic environment:<br />

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

AQjmsConnection.getPingPeriod<br />

Examples<br />

//get the ping period<br />

Connection jms_connection;<br />

long pp = jms_connection.getPingPeriod();<br />

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

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

Saved successfully!

Ooh no, something went wrong!