Answer the question
In order to leave comments, you need to log in
How to update a running Java application?
There is a web application on Spring boot. Now it runs as a jar. Clients periodically run long running operations (5 - 10 minutes). How can I "roll out" an application update so that clients who are already working continue to work, and new connections are processed by the new version of the application?
Answer the question
In order to leave comments, you need to log in
Tomcat has such a feature as Parallel Deployment. The idea is that it can deploy two versions of the application at the same time. New users will use the new version and old users will use the old one until the session ends. More details can be found here https://objectpartners.com/2012/04/17/tomcat-v7-pa...
It depends on which server embeddit boot.
For example, in the case of a tomcat, dig approximately in this direction serverfault.com/questions/324695/apache-tomcat-equ...
As I understand it, everything is rather sad there
I would not advise you to do this, it is better to update the entire war. With restart.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question