Hi all,
I have created an application that has only main thread, this main thread calls the api of another application. Sometimes another application goes down this results in java.net.ConnectException. Due to which my application skips the entry and checks for another entry and call the api of another application for next entry. I want to block the execution of my application till another application becomes up.
Please tell me how can i achieve this.
Ajay Mittal.
I have created an application that has only main thread, this main thread calls the api of another application. Sometimes another application goes down this results in java.net.ConnectException. Due to which my application skips the entry and checks for another entry and call the api of another application for next entry. I want to block the execution of my application till another application becomes up.
Please tell me how can i achieve this.
Ajay Mittal.