setPingInterval procedure

Specifies the interval in seconds for the JMS Adapter to actively ping the SonicMQ Broker so communication failure can be detected promptly.

Note: The JMS providers other than SonicMQ do not support this method.

Syntax

PROCEDURE setPingInterval. 
DEFINE INPUT PARAMETER pingInterval AS INTEGER.

Parameter

pingInterval
The interval (in seconds).

Applies to

Session objects

Notes

  • No pinging is performed by default.
  • The setPingInterval functionality is a SonicMQ extension (see SonicMQ Programming Guide).
  • A pingInterval value can also be specified in the ubroker.properties file for all clients by using the srvrStartupParam property of the OpenEdge Adapter for SonicMQ, as shown:
    srvrStartupParam=pingInterval=3
  • If you are connecting using ClientConnect mode, the pingInterval value must be set in the JavaTools.properties file under the [Adapter.CC.cc1] section, for example:
    [Adapter.CC.cc1]
    ...
    srvrStartupParam=pingInterval=3
  • The setPingInterval procedure must be called before beginSession procedure is called.

See also

For more information, see the Setting and getting JMS connection and session attributes, and also see SonicMQ Programming Guide.