Oracle9i Application Developer's Guide - Advanced Queuing Release 1 (9.0.1) Part Number A88890-02 |
|
JMS Operational Interface: Basic Operations (Shared Interfaces), 62 of 63
Specify the ping period for the Exception Listener.
If an exception listener is set for the connection, the connection pings the database periodically to ensure that the database is accessible. The period is specified in milliseconds. The default value is 2 minutes. If an exception listener is not set for the connection, the database is not pinged. This method can be called before or after the exception listener is set.
See Chapter 3, "AQ Programmatic Environments" for a list of available functions in each programmatic environment. Use the following syntax references for each programmatic environment:
//set the ping period to 4 minutes Connection jms_connection; jms_connection.setPingPeriod(4*60*1000);
|
Copyright © 1996-2001, Oracle Corporation. All Rights Reserved. |
|