Search code examples
javaspringhibernateosgimef

Is there any possibility to add a module to a web service deployed on Tomcat without terminating the existing web service


I have developed a web service using spring mvc and hibernate. Currently I couldn't find a solution to add a module to the running web service without terminating it. My intention is to develop the web service as modules and plug modules in runtime. In .Net the solution is developing the program using MEF (Managed Extensibility Framework) the DLL's. I developed some solutions using OSGI framework but I found some practicability issues existing. Please help me to find an applicable solution for the scenario.


Solution

  • deepening of your plan. this is possible with OSGI by registering the new modules as Services and tracking all services in the Framework's service registry by using ServiceTracker