Swapping a running jar at runtime

前提是你 提交于 2019-12-03 15:59:33

There is a lot of solutions for classes/lib hot-swapping :

It depends on what you want to do.

The closest thing is OSGi

Please have a look at the 'See also' section of the mentioned artice for concrete products.

I don't know of any good way to deal with this. Creating a custom classloader might be an option, although I don't like that idea..

We worked around it by running an updater from a separate jar before launching the main application. This works well enough, but obviously, you can only update the jar when the application is launched.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!