Good time. Can you tell me, how i can stop application in websphere from my application? I'm doing some changes in application in listener when application was start. And if my changes not apply -> application must stop.
My method is called from listener.
Some options:
@Startup @Singletonto the application, and throw an exception from@PostConstructif the application should not start.ServletContainerInitializerorServletContextListenerto the application, and throw an exception if the application should not start.AppStartUpinterface, and return false if the application should not start.