I would like to check for connection to the server that will be hosting my lifecycle application. If the connection to this server fails, I would like to connect to another server. Any idea how I can come about doing it? I was thinking of capturing the exception in a try/catch block but I was not sure of what exception to handle. Am I on the right track? Please advise.