What are the steps to enable EMS server reconnection with the SAP adapter?

What are the steps to enable EMS server reconnection with the SAP adapter?

book

Article ID: KB0087288

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for SAP Solutions -
Not Applicable -

Description

Resolution:
Steps:

1. Stop the EMS server . If EMS Server is installed as a service on a windows machine, go to the Windows Services icon in Control Panel and double click. From the list of services (as shown in the figure below) select the TIBCO EMS Server Service and click on the stop service button. If EMS Server is installed on UNIX machine, execute the script to stop the EMS server.

2. In Windows Explorer (in case of Windows machines) or on command prompt go to the bin folder under the installation folder of Tibco EMS (for example C:\tibco\ems\bin).

3. Make a backup copy of the factories.conf file. Open the factories.conf file in notepad/wordpad.

4. Change the following parameters in the file,

[TopicConnectionFactory]
  type              = topic
  url                = tcp://&ltEMS Server Machine Name>:&ltTCP Port>, tcp://&ltEMS Server Machine Name>:&ltTCP Port>
  metric                = connections
  connect_attempt_count = 1000
  connect_attempt_delay = 5000
  reconnect_attempt_count = 1000
  reconnect_attempt_delay = 5000

[QueueConnectionFactory]
  type                  = queue
  url                   = tcp://&ltEMS Server Machine Name>:&ltTCP Port>, tcp://&ltEMS Server
  Machine Name>:&ltTCP Port>
  metric                = connections
  connect_attempt_count = 1000
  connect_attempt_delay = 5000
  reconnect_attempt_count = 1000
  reconnect_attempt_delay = 5000
  
Note :

a> Do not use localhost as the machine name, please specify the actual machine name in the configuration.

b> It is important to specify the url in the format ur1,ur2 for reconnection to work. In case Fault Tolerant servers are not being used, the values of url1 and url2 should be the same.

c> Save the factories.conf file

d> Open the file tibemd.conf and set the “listen” parameter to the url format tcp://&ltEMS Server Machine Name>:&ltTCP Port>.

Note: Do not use localhost here. Specify the exact machine name for EMS reconnection to work.

e> Save the tibemsd.conf file and start the EMS Server.

Issue/Introduction

What are the steps to enable EMS server reconnection with the SAP adapter?