How to deploy a deployment to multi server groups in domain mode via jboss cli
Issue
- In JBoss Managment Console,we 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 EAP 6.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.
