Java web application for teaching - now with sessions and clustering / load balancing demonstrations
I regret naming "latmjdemo" with that name when I prut together a web application for the Java version of our web deployemnt course. The nameing isn't random:
• L - Linux, the operating system
• A - Apache - the Apache httpd web server that's commonly used to front web sites
• T - Tomcat - the Apache Tomcat (formerly Jakarta Tomcat) web server that provides the Java Servlet container
• M - MySQL - the database commonly used for data store and access
• J - Java - the programming language that's usually used to write substantial web apps.
Not only are these letters in this order a real "mouthful", but hosting may be on a Unix or Windows box, NginX may be used a the web server, Maria DB or SQLite may be the database and the Java source may have been replaced by Scala - yet the principles remain very much the same and our
Deploying Apache / Tomcat course remains rather relevant until several elements are replaced.
So today I have copied (with no source code nor HTML changes needed!) latmjdemo.war to WellHouseApp.war, made a couple of minor revisions, and added further demonstrations into the application. These have been available as source code on our web site anyway - but they're now in the main distribution for the "tomcat course".
•
Barman - a session tracking demo
•
Landlord - sessions and application wide retained information
•
PubWatch - sessions across multiple servers for clustering and load balance training
Both old and new web applcations are available for delegates (and others) to download from our servers -
• latmjdemo
[here]
• WellHouseApp
[here]
(written 2015-02-20, updated 2015-02-19)
Associated topics are indexed as below, or enter http://melksh.am/nnnn for individual articles
A690 - Web Application Deployment - Clustering and load balancing [934] Clustering, load balancing, mod_rewrite and mod_proxy - (2006-11-21)
[1121] Sharing the load with Apache httpd and perhaps Tomcat - (2007-03-29)
[1771] More HowTo diagrams - MySQL, Tomcat and Java - (2008-08-24)
[1993] Load Balancing - Hardware or Software? - (2009-01-15)
[1995] Automated server heartbeat and health check - (2009-01-16)
[2059] Sharing the load between servers - httpd and Tomcat - (2009-02-28)
[2482] Load balancing with sticky sessions (httpd / Tomcat) - (2009-10-29)
[2483] Clustering on Tomcat - (2009-10-30)
[3293] Distributing the server load - yet ensuring that each user return to the same system (Apache httpd and Tomcat) - (2011-05-18)
[3339] Simplest ever proxy configuration? - (2011-06-28)
[3892] Distributed, Balanced and Clustered Load Sharing - the difference - (2012-10-13)
J906 - Java - Servlets in More Detail [479] New servlet from old - (2005-10-28)
[1495] Single login and single threaded models - Java and PHP - (2008-01-04)
[1550] Java (JSP and Servlet examples) live on our server - (2008-02-23)
[1909] javax.servlet cannot be resolved - how to solve - (2008-11-26)
[2183] Servlet life cycle, and Java Servlet variable scope - (2009-05-16)
[2652] Reading and writing cookies in Java Servlets and JSPs - (2010-02-26)
[2717] The Multiple Inheritance Conundrum, interfaces and mixins - (2010-04-11)
[3044] Changing a Servlet - more that just editing and compiling - (2010-11-12)
[4431] A Java servlet that is also a stand alone program. And a server that is also a web client. - (2015-02-19)
J901 - Java - Servlets [3997] Servlet v JSP (Java Server Page). What is the difference? - (2013-02-06)
Some other Articles
Accessing a MySQL database from Python with mysql.connectorImages of our rail promotion campaign Public training courses - upcoming datesDifferent views of a Welsh Valley - but headed homeJava web application for teaching - now with sessions and clustering / load balancing demonstrationsThe spirit of Java - delegating to classesWind Turbines - beauty or menace?Using the lead - passing arrays and other collections in JavaJava example - for loop and conditionals from course exercise