I have a Hospital Management System. It is a Java Web application. This app consists of multiple modules like Pharmacy Module, Material Management module  etc. in the same single app. It is way old one. Hence, we would like to rebuild it from scratch again using spring mvc and hibernate orm.when we deploy the old app, we are deploying the complete build with all the modules. But none of our clients use all the modules. So i want to build the new app in such a way that, i deploy only the modules that are actually required by the client. How can i deploy only the modules that are actually required by the client? Any architectural changes required? Should i need to divide each module into each application?Also, I would like to establish a communication between these modules.For example, when working with Pharmacy Module I would like to know whether MM module is deployed to that client or not at runtime. How can i achieve that?
How to manage multiple modules in a single java web application built using spring mvc and hibernate orm?
design;architecture;web applications;deployment;application design