Dynamically loadable and unloadable application modules in Java - how?

后端 未结 5 2005
醉酒成梦
醉酒成梦 2021-02-10 17:47

I\'m writing a server application which makes use of external modules. I would like to make them to be upgradeable without requiring server restart. How do I do that? I\'ve foun

5条回答
  •  别那么骄傲
    2021-02-10 18:42

    OSGi is not so complicated - using PAX runner with maven worked as a breeze.

    Or implement your own ClassLoader and set it to JVM : java -Djava.system.class.loader=com.test.YourClassLoader App.class

提交回复
热议问题