Some options:
- Add an EJB
@Startup @Singleton
to the application, and throw an exception from@PostConstruct
if the application should not start. - Add a
ServletContainerInitializer
orServletContextListener
to the application, and throw an exception if the application should not start. - Use the WebSphere-specific
AppStartUp
interface, and return false if the application should not start.