Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Connection failure handling


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