In this tutorial we will learn how to install Oracle GlassFish application Server open source V4 at windows platform for Java-ee based web applications deployment and web-hosting.
Now we first download the required version of Glassfish app-server from official website which is in our case is Oracle GlassFish application server Open source edition V4.
Click here to download Oracle GlassFish Application Server
Below is the official downloading page for GlassFish server open source Edition 4.0. Here two types of Zip files are available. We will download 2nd option of specific installer for Java-EE-7
Save downloaded file of Glassfish-4.0.zip at your specific location and unzip it as showing in below mentioned snapshot.
Open the location " \glassfish-4.0\glassfish4\bin " and double click at asadmin.bat, a command window will be open as showing below
Write start-domain command after asadmin> as showing in below snapshot to start GlassFish application server domain. ( asadmin> start-domain )
This process can also start by giving command "glassfish4\bin\asadmin start-domain " after changing path to desired location.
GlassFish application server process has been started. A window for Security alert will open, click on unblock for unblock the server process
Results of commands is showing below
Waiting for domain1 to start ...................................................
Successfully started the domain : domain1
domain Location: D:\asif\glassfish-4.0\glassfish4\glassfish\domains\domain1
Log File: D:\asif\glassfish-4.0\glassfish4\glassfish\domains\domain1\logs\server
Admin Port: 4848
Command start-domain executed successfully.
GlassFish Application Server has been started and now we can open server admin console. Click on below link to open admin console.
Below is the admin console view of GlassFish Application Server. Here you can manage all the tasks of GlassFish application server.
Below snapshot is showing all common tasks which can be managed from GlassFish Application server.like Domain management, Server Administration, Clusters management, Nodes management, Resources (Connector, JMS, JavaMail session, JNDI etc), deployed applications management, Web container, EJB Container etc.
How to Stop and restart GlassFish Application Server :
The second way to stop Glassfish application server is to write stop-domain command after asadmin in already open command window. ( asadmin> stop-domain) as showing in below snapshot.
Congratulation we have been successfully learned, how to download GlassFish Application server and how to install it. How to stop, start and restart the GlassFish Application Server at Window platform. From this way, we can use GlassFish application server for our Java-ee 7 applications deployment and for reliable secure web hosting.
What is Oracle GlassFish Java-EE Web Application Server