In order for FA to attempt reconnecting to an EMS server if the EMS server connection is lost, follow the steps below.
1). Use a comma separated list of the EMS servers in the FA project configuration.
FA can use SDK to reconnect to the TIBCO EMS server.
a). If a single EMS Server is running:
To enable the SDK reconnection feature with a single EMS server, set the JMS Provider URL property to %%JmsProviderUrl%%,%%JmsProviderUrl%% for DefaultJmsTopicSession and DefaultJMSQueueSession.
b). Multiple EMS Servers running in FT mode:
Provide the JMS provider URL property to %%JmsProvider1Url%%,%%JmsProvider2Url%%. For more information, refer to the TIBCO Enterprise Message Service User's Guide, Chapter 13, Fault Tolerance.
2). Modify the adapter tra file:
Set tibco.jmsReconnectCount to 100 (the default value is 4) and tibco.jmsReconnectDelay to 2000 (the default value is 500). You can include these properties in the adfilesagent.tra file which act as a template for generating a tra file. Avoid modifying the tra file for each file adapter instance.
3). Specify multiple EMS Servers in a comma separated list for factories used in the FA project.
Example: URL1,URL2 for TopicConnection and QueueConnection factory for factories.conf file of each EMS Server.