D
D
delphidev2015-06-17 10:18:35
Java
delphidev, 2015-06-17 10:18:35

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

3 answer(s)
N
nagibator8000, 2015-06-17
@nagibator8000

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...

N
Nikolai, 2015-06-17
@j_wayne

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

N
Nikolai Pavlov, 2015-06-17
@gurinderu

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 question

Ask a Question

731 491 924 answers to any question