setPingInterval procedure
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
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
|
Parameter
- pingInterval
- The interval (in seconds).
Applies to
Session objects
Notes
- No pinging is performed by default.
- The
setPingIntervalfunctionality 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
srvrStartupParamproperty 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
setPingIntervalprocedure 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.