Hi all, I'm working on a fully automated deployment process using JBoss AS CLI. I have the requirement of make an atomic deployment of an existent application. I define the process this way:
I made some tests of deployment using the CLI and I couldn't achieve that kind of behavior. My tests were:
Make an standard deployment:
[ having app.war version 1.0 deployed with name=app.war runtime-name=app.war ]
> deploy new\app.war
Result: The original application was undeploy, the new deployment failed so at the end there's none application running.
Run a CLI Batch:
[ having app.war version 1.0 deployed with name=app-1.0.war runtime-name=app.war ]
> batch
#> undeploy name=app-1.0.war --keep-content
#> deploy new\app.war --name=app-2.0.war --runtime-name=app.war
#> undeploy name=app-1.0.war
#> run-batch
Result: The batch ended successfully. The new war file was uploaded but never enabled, so the deployment didn't fail. But again, there's none application running at the end of the process.
My tests were on a standalone JBoss AS, but I have to make this process for domain mode also, because we probably will use that mode in production.
Thanks for you help!