In order to make the server connection can reconnect to the gateway host infinitely to connect to the SAP gateway host upon reconnection, "Maximum time between two startup attempts in case of failures (secs)" on the server connection can be set to the value of -1.
"Maximum time between two startup attempts in case of failures (secs)" property can be found on server connection by following below steps:
1. Click on "Server Connection Configuration" tab on SAP Connection resource.
2. Select "Enabled" checkbox.
3. Click on "Show/Hide Advanced Options" and set the value of "Maximum time between two startup attempts in case of failures (secs)" to -1.