Disable certain ear sub deployments from deploying in JBoss EAP 6

Solution Unverified - Updated -

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content