Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

Connection failure handling

Avatar

Level 1

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.

Thanks in advance.

0 Replies