RE: how to batch two projects as a single project
You can batch , two projects into single module using some server.
Some thing like this.
Project X and Project Y both are hosted on single Tomcat server.
Assign two different Port Numbers for each project.
8081 for one and 8082 for one . In this way you can run two programs at different ports at a time.
Note : Issues Arise
When two projects hosted on single server we will issues with Properties. Make sure all the property files are located in the project which is defined in the run configurations of the Tomcat.