• Post Reply Bookmark Topic Watch Topic
  • New Topic

Replacing jar file, while still running old jar  RSS feed

 
Matt Bell
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a jar file which users run my application from. When I do a new release I replace the jar with the new jar (same file name)

The problem is, users that still have the application running, cannot safely exit, i assume because the jar has been replaced and it cannot find the old jar or the class/method is not loaded in the JVM.

Is there a way to always have the exit class/method always loaded in the JVM (I think this might allow it to close safely)
Or would I be better to use a different release technique than just replacing the jar?

Many Thanks,
Matt
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Matt Bell wrote:Or would I be better to use a different release technique than just replacing the jar?

That one.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!