How to update Java application of .war format for several clients?

1

I have a tomcat 8.5 server and deploy a .war file. The same works perfectly. My question is, each client has a server deployed in their company, so I'll distribute the same .war file to various clients.

What is the best way to create an automatic update routine on these clients' servers? I think many people have gone through this problem, any answer will be welcome.

    
asked by anonymous 01.08.2018 / 18:57

1 answer

2

Downloading my comments for an answer:

We do not know your scenario completely, but I have some pointers:

  • Remote Deploy

This application allows you to deploy a .war to an external IP. Knowing the IPs of the clients, you can generate a script that goes from IP to IP by deploying the new version.

connect http://IP_DO_CLIENTE:8080/manager usuario senha
deploy aplicacao.war

I do not know if there is a continuous integration process in your company. If so, you can associate the run at the end of a new release, for example.

  • "Updater"

You can also develop an application that acts as an updater, which, from time to time, goes into a repository and checks for a newer version of that artifact. If yes, download and make the new deploy

The two approaches have their technical and implementation difficulties. I suggest you take this as a north to deepen your research:)

    
01.08.2018 / 19:30