Glassfish is Oracle's reference Java EE application server, so you can be sure that it will support the Java EE specification completely. In this post, I’ll go through the first steps of getting Glassfish installed and clustered with Apache to proxy requests. All this will be set up using one CentOS and one Fedora instance, but the steps should require little to no tweaking for other Linux platforms.
Create a domain
Here are all the commands I used:
Communicate between instances
Configurations àserver-config àNetword Config àNetwork Listeners àadmin-listener
Enable the JK Listener check box and make sure to save.