I am deploying w760-based web applications on the Amazon Beanstalk platform and they give me the option to set the healthcheck URL for my application.
The idea is that after deployment, their platform will query this URL to see if the application is running successfully. Thus, if the request results in HTTP 200, the application is probably fine. But if this leads to HTTP 500 or something else, the platform knows that the problem is with the application.
So, I would like to develop some kind of servlet that would check whether Spring the Application Context was successfully initialized or not, in order to provide the corresponding HTTP response code to the platform.
Has anyone tried something like this? For similar purposes?
I am wondering if Spring already offers some elegant solutions for this.
java spring amazon-web-services
Gabrielbr
source share