문제

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:

  1. Add an EJB @Startup @Singleton to the application, and throw an exception from @PostConstruct if the application should not start.
  2. Add a ServletContainerInitializer or ServletContextListener to the application, and throw an exception if the application should not start.
  3. Use the WebSphere-specific AppStartUp interface, and return false if the application should not start.
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top