Consultor Eletrônico



Kbase P26707: Is there a way to reconnect if there is a JMS Server communi
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   05/08/2004
Status: Unverified

GOAL:

Is there a way to reconnect if there is a JMS server communication loss?

FIX:

Yes, a SonicMQ Adapter client can trap for a communication loss and run reconnect logic that will make attempts at a new connection to the SonicMQ Broker.
The client code can test for errorcode -5 then run reconnect logic.

IF errorCode = "-5" THEN
DO:
jmsIsOk = no.(Set whatever logicals you want to set)
Run reconnect.(Run reconnect logic here)
END.