Search code examples
deploymentjboss

Update an existing war on jboss EAP 7 without redeploy


On my Jboss EAP 7 server an application.war is deployed. Now i want to update and add some class and jsp files.How can i update existing war without deploying whole war?


Solution

  • @ehsavoie as per your suggestion I can change only jsp file but for Web-Content files I need to restart the application and here is the catch that Jboss maintain the checksum of every deployed application but you copy your new file at an already exploded application. This doesn't affect checksum so, now after restart it explodes your last .war and your changes reverted. Efficient way to partial deployment is use deployment:add-content command in cli mode.

    /deployment=DEPLOYMENT_NAME.war:add-content(content=[{target-path=/path/to/FILE_IN_DEPLOYMENT, input-stream-index=/path/to/LOCAL_FILE_TO_UPLOAD}]

    Here is the link if you want to read more.