How to deploy a deployment to multi server groups in domain mode via JBoss CLI

Solution Verified - Updated -

Issue

  • In JBoss Managment Console, users can add a deployment (add to deployment repository) then assign it to different server-groups,but under cli mode,it can't be done duo to 'xxx' already exists in the deployment repository by using the following command:
[domain@localhost:9999 /]deploy /path/to/test.war --name=test --runtime-name=test --server-groups=group1
[domain@localhost:9999 /]deploy /path/to/test.war --name=test --runtime-name=test --server-groups=group2
Result: 'test' already exists in the deployment repository.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
    • 7.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