Tech-Today
How to create a Glassfish cluster
This tutorial will attempt to explain, how to create a Glassfish cluster using the Glassfish's admin interface.
To do this, you must have download, install and configured Glassfish's domain1 to start.
Steps:
1.) Create nodes (What are nodes? See reference below. Basically it's another machine with Glassfish installed/or none because when you configure a node from a parent glassfish it can copy itself to the node). Click Nodes->New and set the following values:
Type: SSH
Node Host: is the IP of the node machine
SSH Port: 22
SSH User Authentication: Password
Set SSH User Name and Password
2.) Create a new cluster, Click Clusters->New, enter a cluster name and click Ok.
3.) Add an instance. Click the newly created cluster and select the Instance tab.
4.) Under Server Instances, click New. In the Node dropdown, select the name of the node we just created and give it an instance name. Click ok.
5.) You have now configured a Glassfish cluster to add a new node repeat 2.
6.) To install an application to the cluster, click the Applications tab and deploy as usual. In the Targets section add the newly created cluster name to the Selected Targets panel.
Common Problem:
1.) Sometimes the controller (the Glassfish where you setup the cluster) is not visible in the node that you added. To solve this issue add the controller's name and ip in the node's /etc/hosts. IP
Computer Name.Reference:
http://glassfish.java.net/public/clustering31.html
-
How To Create A Wildfly Cluster
The following steps will help us configure a Wildfly cluster. *Note that I'm using Wildfly 11 *It took me some time to figure it out so I'm writing it here for reference. I'm using the standard-full-ha.xml profileIn the program arguments add -b...
-
Docker Swarm Commands
This tutorial requires connection to the internet as swarm creation and management needs Docker Hub. Requirements WindowsDocker CEVirtualBox*Needless to say, a docker for windows must be running. docker run swarm create --Download the swarm image locally....
-
How To Configure Wildfly 8 Clustering And Deploying Picketlink Enabled War Application To Test The Session.
In this tutorial we will try to configure wildfly cluster and test it by deploying a picketlink enabled war application where a user can login and the session shared between the virtual server. Before we start, make sure that you read these links: https://docs.jboss.org/author/display/AS71/AS7+Cluster+Howto...
-
How To Install And Setup Glassfish
1.) Download glassfish installer from http://download.java.net/glassfish/3.1.1/release/glassfish-3.1.1.zip 2.) Unzip in {your_choice}/glassfish-3.1.1 3.) Create 'startup' script file as follows: 4.) Create mydomain domain in glashfish: {your_choice}/glassfish-3.1.1/bin/asadmin...
-
How To Create A Connection Pool For Postgresql On Glassfish 3.1.1
This tutorial assumes that 1.) You already have Glassfish 3.1.1 installed. https://blogs.oracle.com/java/entry/glassfish_3_1_1 2.) Create and start a Glassfish domain a.) asadmin create-domain czetsuya b.) asadmin start-domain czetsuya...
Tech-Today