April 2018
Intermediate to advanced
382 pages
10h 11m
English
The best way to set up a Java EE cluster today is using containers (specially Docker containers). So, I'd recommend that you have a look at Chapter 11, Rising to the Cloud – Java EE, Containers, and Cloud Computing. If you mix the content of that chapter with the content of this one, you will have a powerful environment for your application.
To allow your application to share its session with all the nodes in the cluster, you need to edit the web.xml file, find the web-app node, and insert this:
<distributable/>
Without it, your session clustering will not work. You also need to keep all objects that you are holding in the session as serializable.
Read now
Unlock full access