GlassFish is a Java EE open source application server. The following instructions demonstrate how to install GlassFish 2.1.1 on any Linux platform.
http://glassfish.java.net/javaee5/build/GlassFish_LB_Cluster.html contains full information on downloading and installing glassfish clusters and load balancer plugin.
I am going to explain the steps I took to install glassfish clusters as I didn't require load balance support.
Please note all commands will require elevated privileges.
1. Download binary installer from http://glassfish.java.net/downloads/v2.1.1-final.html
save to /opt directory.
2. Ensure JAVA_HOME variable is set to JDK directory
3. Within the /opt directory run java -Xmx256m -jar glassfish-installer-v2.1.1-b31g-linux.jar
INSTALLATION COMPLETE is displayed
This UN-bundles glassfish and installs under a new directory 'glassfish'
4. Change to glassfish directory cd glassfish/
5. Change permissions on lib/ant/bin sub directory using chmod -R +x lib/ant/bin
6. Run lib/ant/bin/ant -f setup-cluster.xml . If successful you get BUILD SUCCESSFUL displayed
7. From /opt/glassfish/bin run ./asadmin start-domain domain1 to start to default domain.
Domain [domain1] is running is displayed
8. Browse to http://localhost:8080/ to confirm Enterprise server is now running.
9. Browse to http://localhost:4848/ to access admin console. Default user name and password are username: admin, password: adminadmin . You can change this from the Application Server settings on the web admin interface page.
The server is now running and now we are going to look at creating a one machine cluster.
10. Change to directory /opt/glassfish/samples/quickstart/clusterjsp
Run /opt/glassfish/bin/asant setup-one-machine-cluster
This does the following:
Creates a cluster with name cluster1
Creates a node-agent with name cluster1-nodeagent
Starts the above
Creates two instances under the cluster
You can change these default values under /opt/glassfish/samples/quickstart/clusterjsp/cluster.properties before running
BUILD SUCCESSFUL is displayed
12. Start the cluster using glassfish/bin/asant start_cluster
BUILD SUCCESSFUL is displayed again
13. View and confirm node with two instances is setup from http://localhost:4848/ select node agent then cluster1-nodeagent on the left pane
If you need to test the two instances you can simply deploy an application in glassfish and browse to the instance using http:localhost:PORT/appname
If you continue reading the link below you can learn how to use the load balancer plugin and set up Sun Java System Web Server for this.
http://glassfish.java.net/javaee5/build/GlassFish_LB_Cluster.html
http://docs.sun.com/app/docs/doc/821-0186/aboaa?a=view - also a useful link for getting started
Showing posts with label SDK. Show all posts
Showing posts with label SDK. Show all posts
Sunday, 2 January 2011
Tuesday, 30 November 2010
Installing android SDK and ADT plugin for Eclipse IDE
The easiest way to get started in developing Android apps is to use the Eclipse IDE with android SDK and ADT plugin. There are simple instructions on the android developers site, however to confirm the steps are as follows:
1. Install Eclipse IDE, see Installing eclipse IDE
2. Download the SDK starter package.
Extract the contents and save to a directory. Your home directory is safe place where you'll be able to find it later on.
3. Download and install the ADT plugin. This is very simple in Eclipse.
a. Launch Eclipse, Click Help, Install new software.
b. Click the option to add available software and type the following in the add site field:
https://dl-ssl.google.com/android/eclipse/
c. Click OK, then back in the available software list you will see Developer Tools. Selecting the check box for this will add Android DDMS and Developer Tools.
d. Click next, accept any licence agreements, then press finish. Eclipse will restart.
4. a Finally to configure the ADT plugin. Go to preferences, available under the window tool menu.
b. Select Android, and for the SDK location browse to the saved directory you have from earlier.
c. Click apply, OK.
SDK and ADT plugin for eclipse are complete.
1. Install Eclipse IDE, see Installing eclipse IDE
2. Download the SDK starter package.
Extract the contents and save to a directory. Your home directory is safe place where you'll be able to find it later on.
3. Download and install the ADT plugin. This is very simple in Eclipse.
a. Launch Eclipse, Click Help, Install new software.
b. Click the option to add available software and type the following in the add site field:
https://dl-ssl.google.com/android/eclipse/
c. Click OK, then back in the available software list you will see Developer Tools. Selecting the check box for this will add Android DDMS and Developer Tools.
d. Click next, accept any licence agreements, then press finish. Eclipse will restart.
4. a Finally to configure the ADT plugin. Go to preferences, available under the window tool menu.
b. Select Android, and for the SDK location browse to the saved directory you have from earlier.
c. Click apply, OK.
SDK and ADT plugin for eclipse are complete.
Labels:
ADT plugin,
android,
android development,
eclipse,
SDK
Subscribe to:
Posts (Atom)