book
Article ID: KB0086757
calendar_today
Updated On:
Description
Resolution:
The adapter can be made to reconnect to the EMS Server in the event of a disconnection by specifying the value of the field ‘Provider Url:’ in the concerned session as
a) ‘URL1,URL2’ if the adapter needs to connect to a different server in the event of a disconnection or
b) ‘URL1,URL1’ if the adapter has to connect to the same server in the event of a disconnection.
where URL1 and URL2 are the JMS Provider Url of the respective EMS servers (e.g.tcp://<hostname>:7222).
Please note that these steps are specific to the configuration used by you.
If you want to specify the reconnect parameters such as count and attempt delay in the adapter side you can do so as below:
Properties file parameters
--------------------------
tibco.jmsReconnectCount
tibco.jmsReconnectDelay
i.e. add the above parameters to the adsbl.tra file
Command line options parameters
------------------------------
-system:jmsReconnectCount
-system:jmsReconnectDelay
tibco.jmsReconnectCount limits the number of times that the connection object attempts to re-establish a connection to the server. When this property is absent, the default value is 4. The minimum value is 1.
tibco.jmsReconnectDelay is the time (in milliseconds) between reconnection attempts. When absent, the default value is 500. The minimum value is 250.
**Global variables are not supported for these parameters, as these are system predefined property variables**
If the adapter instance is deployed via TIBCO Administrator, the default .tra file (<TIBCO_HOME>\adapter\adsbl\5.2\bin\adsbl.tra) will have to be modified and the above parameters would have to be added and the required values provided in the same, and then the instance would have to be redeployed.
The reconnection will be attempted when the first message is received after the disconnection happens, and the reconnection process would not log any trace messages in the adapter log files
Issue/Introduction
How do I configure the adapter to reconnect to an EMS server?