# Using Connection Factories

Substation ES uses the TIBCO Enterprise Message Service connection factory for all EMS connections. Substation ES creates a default Connection Factory Object when the ESB interface starts, and then populates the Connection and Re-Connection Parameters using the definition from the Substation ES Configuration File.

## Implementing Automatic Reconnect

To implement Auto Reconnect to the EMS ESB endpoints, you must update the EMS Server URL definition in the Configuration File and specify this in the same way you would for any EMS URL definition. For example, with a non FT server, specify the URL twice separated by a comma:

ems_server_url,ems_server_url

Note: There are no spaces between the URL names. For example: 192.168.1.100:7888,192.168.1.100:7888
The Reconnect parameters can be customized on the ECF panel. These parameters are listed as follows:

- Attempts
- Delay
- Timeout

Use caution when setting these values or changing them from the product default settings because Mainframe values must be a little higher than a local connection.
Copyright © TIBCO Software Inc. All rights reserved.