-
1. Re: Wildfly 9.0.2 - change config file in war. How to update application?
jamezp Apr 12, 2017 7:28 PM (in response to gierlos)Generally speaking if you're changing an application you need to redeploy the application.
--
James R. Perkins
-
2. Re: Wildfly 9.0.2 - change config file in war. How to update application?
abhijithumbe Apr 13, 2017 2:39 AM (in response to gierlos)2 of 2 people found this helpfulIf you dont want to replace application from admin console then you can try with JBoss deployment overlay feature. With this feature you can update files without rebuilding application. Go through link for more details on deployment overlay
-
3. Re: Wildfly 9.0.2 - change config file in war. How to update application?
jamezp Apr 13, 2017 10:57 AM (in response to abhijithumbe)+1 I keep forgetting about overlays for some reason. Those are the way to go.
--
James R. Perkins
-
4. Re: Wildfly 9.0.2 - change config file in war. How to update application?
gierlos Apr 13, 2017 5:23 PM (in response to jamezp)Thaks guys for your reply.
@James, Why do you think I should forget overlays?
Sometimes I want to chagne configuration file asap, so I wont do this on content.
Is any posibility to reload application by cascade?
I need application available 24/7. In IBM WebServer I can reload application by cascade so my application is still runing without any inaccessibility.
-
5. Re: Wildfly 9.0.2 - change config file in war. How to update application?
jamezp Apr 13, 2017 5:46 PM (in response to gierlos)Sorry I'm saying you SHOULD use overlays. I personally just keep forgetting they exist.
--
James R. Perkins
-
6. Re: Wildfly 9.0.2 - change config file in war. How to update application?
abhijithumbe Apr 13, 2017 11:39 PM (in response to gierlos)1 of 1 people found this helpfulIf you want to update application with zero downtime then you can go with approach suggested in Does Wildfly Support - Canary Release Deployment (Side By Side) Deployment
-
7. Re: Wildfly 9.0.2 - change config file in war. How to update application?
gierlos Apr 15, 2017 6:49 AM (in response to abhijithumbe)I try use this with CLI :
deploy /opt/wildfly/deployments/hello_world.war --name=hello_world.war --runtime-name=hello_world.war --server-groups=server-Customer --headers={rollout server-Customer(rolling-to-servers=true)}
After this I do :
deploy /opt/wildfly/deployments/hello_world.war --name=hello_world.war --runtime-name=hello_world.war --force
When I tested it I saw that the war is redeploying in the same moment of two nodes of server groups... So in the same moment all nodes returning 404...
What am I doing wrong?
-
8. Re: Wildfly 9.0.2 - change config file in war. How to update application?
gierlos Apr 15, 2017 11:27 AM (in response to gierlos)Ok, I did it.
I created bash script where:
- Creating overlay deploy
- Reload host B of server group - all trafic going to hostA
- Reload hostA of server group - all traffic going to host B
- Application is updated !
I have one more question :
Where is stored the updated war?
-
9. Re: Wildfly 9.0.2 - change config file in war. How to update application?
abhijithumbe Apr 16, 2017 10:58 PM (in response to gierlos)It goes under 'data' directory.
-
10. Re: Wildfly 9.0.2 - change config file in war. How to update application?
gierlos Apr 19, 2017 2:28 AM (in response to abhijithumbe)Ok, thanks.
Is any posibility to use deployment overlay for the whole war?
I want do scenario:
- Creating overlay for whole war (eg new applicaion version to deploy without any inaccessibility)
- Reload hostB - all trafifc going to A
- Reload hostA - all traffic going to updated app on hostB.
- All nodes in server group have updated version of app.