When I’m deploying a WAR (or EAR) to an application server I have to be sure that the environment (everything around the AS) is ready for my application. Is it possible to instruct AS to execute certain Java classes right after deployment, and report a deployment problem if one of them reports a failure?
Share
Implement ServletContextListener and register it with
<listener-class>inside your web.xml