JBoss Community

Deploy to sever-groups within CLI

created by Alfonso Chavez Negrete in JBoss AS 7 Development - View the full discussion

I have been trying to implement a script  that will keep on one of my server-groups the current war file and on the other one load a newly build war file as of now I have managed to undeploy or remove the file from that server node but not been able to deploy the new war file, basically this is the procedure of the commands that will be sent to CLI through the script

 

./server-group=Some-serverGroup/deployments=oldWarFile.war:remove

 

{

    "outcome" => "success",

    "result" => undefined,

    "server-groups" => {"Some-serverGroup" => {"host" => {

        "master" => {"Some-serverGroup1" => {"response" => {"outcome" => "success"}}},

        "slave" => {"Some-serverGroup2" => {"response" => {

            "outcome" => "success",

            "result" => undefined

        }}}

    }}}

}

 

The idea after this point is to deploy  to that server node a new war file stored in /uploadFolder/newWarFile.war

 

but seems that using deploy --force is not doing what is need by my, is there any guide line or suggestion regarding this

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community