Deploy EAR/WAR in a servergroup but not enable it

Posted on

Hi,
I have a question about deployment process: I would like to deploy a web app to a specific server group but I don't want to enable it.

I use this command to deploy the war but in this case I don't assign it to a server group.
[domain@dvd1srheapdm:9999 /] deploy D:\Deploy\TEST\cluster\1\clusterjsp.war --name=REDHAT_ClusterJSP-v1_Test --runtime-name=cluste
rjsp.war --disabled

If I use this command the web application is deployed to a specific server group but in will be enabled.
[domain@dvd1srheapdm:9999 /] deploy D:\Deploy\TEST\cluster\1\clusterjsp.war --name=REDHAT_ClusterJSP-v1_Test --runtime-name=cluste
rjsp.war --server-groups=REDHAT_Counter_Test

I know that is possible to use the commad below to "disable" the web application but I don't want that the application starts.
[domain@dvd1srheapdm:9999 /] /server-group=REDHAT_Counter_Test/deployment=REDHAT_ClusterJSP-v1_Test:undeploy

Can anyone help me to resolve this issue.

Thank you so much.
Roberto

Responses