Disable certain ear sub deployments from deploying in JBoss EAP 6
Issue
- How to Control subdeployment availability based on server-group? We have a single application EAR "app.ear" deployed in jboss running in domain mode and it has 2 web subdeployment "web1.war" and "web2.war". I have 2 server groups in my domain.xml, "group1" and "group2" each containing one or more servers. The application "app.ear" is deployed on both the server groups. But I would like to configure so that the sub-deployment "web1.war" is available only on "group1" and "web2.war" is available only on "group2". Can I configure this either in the application level (jboss-deployment-structure.xml, jboss-app.xml, jboss-web.xml etc) or on the server level (domain.xml, host.xml) etc?
Environment
Red Hat JBoss Enterprise Application Platform (EAP) 6.1.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
