I have a Jave EE6 web application packaged as an EAR running on JBoss AS 7.2, it has 3 auxiliary modules (WAR), each with its own web context, at the moment all web contexts start automatically when the application is deployed.
Can I configure WAR web contexts that will be disabled by default at startup? I would like to be able to selectively include each web context based on some startup logic in my @Startupbean
Added for clarity:
I have seen solutions like:
[http://stackoverflow.com/questions/5067062/how-to-disable-specific-apps-from-starting-during-tomcat-startup][1]
Which calls modify the contents of the packaged WAR or set the dodeploy flag, which I want to avoid. I would like to run an EAR application with all of the default web contexts disabled, and then, when the application is fully initialized, selectively run individual web contexts.
Daveb source
share