server.3. Owns a domain name on which to run the web-applicationSuggested Setup:-Setup Application on various application contexts in a Java Webserver (e.g. Tomcat) on URLs likehttp://localhost:8080/application-version1http://localhost:8080/application-version2........http://localhost:8080/application-versionNin folders/usr/local/java-webserver/webapps/application1/usr/local/java-webserver/webapps/application2......../usr/local/java-webserver/webapps/applicationNThe application codebases can be directly updated via rsync from the local machine's SVN working copies on a machine on client's LAN by using the rsync over ssh transport.Run via cron or manually the followingcd rsync -e 'ssh -i /id_rsa_application1' --exclude=.svn -nzvrpoglHDIt --delete root@:/usr/local/java-webserver/webapps/application1cd rsync -e 'ssh -i private_key_full_path/id_rsa_application2' --exclude=.svn -nzvrpoglHDIt --delete root@:/usr/local/java-webserver/webapps/application2........cd rsync -e 'ssh -i private_key_full_path/id_rsa_application2' --exclude=.svn -nzvrpoglHDIt --delete root@:/usr/local/java-webserver/webapps/applicationNOn Apache2 use mod_proxy to reverse proxy multiple application contexts on to various fully qualified host names as below:-Production Version at a VirtualHost on Apache2 with ServerName www.proxying http://localhost:8080/PRODUCTIONVersion 1 at a VirtualHost on Apache2 with ServerName www.proxying http://localhost:8080/application1........And so on.Notes:-As you see only 1 routable IP address is required for such a setup and a single server. The SVN doesn't need to setup on the remote server outside the office LAN.Database configuration management is similarly easy where each application context can use its own DB in MySQL/PerconaDB/MariaDB/PostgreSQLUse of a separate private key for each version is suggested as it seems that each working copy version on the branches for an application codebase is being worked by an individual developer.]]>
Maintaining multiple Java application versions on an E2E CLOUD server
Tarun Dua
May 20, 2022
2 min read
Related Articles
Cloud Computing
VM vs Containerised VM: A Comprehensive Comparison
Compare Virtual Machines (VMs) and containerised VMs, highlighting their differences, advantages, and disadvantages. Discover how E2E Cloud leverages both technologies for robust,...
E2E Networks
Aug 7, 2024
3 min read
Cloud Computing
Virtual Machines vs Containers
Understand the key differences between virtual machines and containers. Learn how each technology works, their pros and cons, and which is better suited for your cloud deployment n...
E2E Networks
Aug 6, 2024
6 min read
Cloud Computing
E2E Networks: Your MeitY Empanelled Cloud Service Provider
E2E Networks proudly announces its empanelment as a Cloud Service Provider (CSP) by India's Ministry of Electronics and Information Technology (MeitY).
E2E Editorial
Jul 1, 2024
3 min read