Deploy an artifact in a cluster environment using CARGO JBoss remote deployer


As discussed here ( I was looking for a way to deploy an application on a Jboss Cluster using Cargo.
I made some implementations and generated a cargo version where I'm able to acomplish this task.
I've attached a path with the changes and will explain here what I did to see if its ok:

  • Changed the constructor of the class to receive an instance of org.codehaus.cargo.container.configuration.Configuration too.

  • Changed, in class, the methods 'deploy' and 'undeploy' to instanciate a profile taking into account some container configurations:
    1)cargo.jboss.configuration -> specify the profile
    2)cargo.jboss.clustered -> if true deploy on farm dir

  • The 'undeploy' method, in addition of stopping the application also delete the file. That way Jboss will remove the application from all cluster nodes. In case of someone want only to stop the application it still possible using the cargo:deployer-stop goal.

  • Changed the class org.codehaus.cargo.container.jboss.JBoss5xRemoteDeployer to instantiate the passing an instance of org.codehaus.cargo.container.configuration.Configuration at the constructor.




Savas Ali Tokmen


Rafael Castro de Carvalho


Fix versions

Affects versions