ConnectivityRestoredEventHandler

The ConnectivityRestoredEventHandler handles the ConnectivityRestored event.

EXEC specification: com.ibm.paydir.ima.txsvr.event.appbridge.ConnectivityRestoredEventHandler

The Transaction Server detects FTM database connection or JMS (IBM® MQ) connection failures. In response to a failure, it monitors for connectivity to be restored and when that occurs, the ConnectivityRestored event is issued.

If more than one Transaction Server is deployed, each Transaction Server independently monitors for loss of connectivity and resumption of connectivity. To prevent multiple events from being issued when connectivity is restored, an IPD process lock is created in the FTM database by the first Transaction Server, which detects loss. This action prevents any other Transaction Server from issuing an event for the same loss of connectivity occurrence.

Event parameters

Table 1. ConnectivityRestoredEventHandler parameters
Parameter name Type Value Description
connectivityDownTime Timestamp   Indicates when the connectivity was lost.
connectivityType String
  • database
  • jms
Indicates which type of connectivity was restored.

Message contents

When the message is delivered to the target application, it contains the parameters that are described in Table 1.

Example handler XML

The example XML shows a connectivityRestored Messaging API message that is sent to the Distribution engine.

<EVENT>
   <NAME>Distribution - Connectivity Restored</NAME>
   <TYPE>ConnectivityRestored</TYPE>
   <EXEC>
      com.ibm.paydir.ima.txsvr.event.appbridge.ConnectivityRestoredEventHandler
   </EXEC>
   <PARAMETER name="msgType">connectivityRestored</PARAMETER>
   <PARAMETER name="destinationID">Distribution</PARAMETER>
   <PARAMETER name="jmsSendQueue">FXH.DISTRIBUTION.INPUT.QUEUE</PARAMETER>
</EVENT>