LAB-7001: Using Eclipse to Develop for the GlassFish Server

Expected Duration: 60 minutes

Last Updated: May 08, 2009

The GlassFish open-source application server is the Java Platform, Enterprise Edition (Java EE) reference implementation built for mission-critical enterprise deployments.

The Eclipse Tools Project is an open source project of eclipse.org, overseen by a Project Management Committee (PMC) and project leaders. 

The GlassFish Plugin project is an open source project from the Java Development Community that is enables IDE users to develop, deploy and run their Java EE applications using their favorite IDEs. The current plugin is developed for GlassFish v1, v2, v3 Prelude, v3 Enterprise (promoted build), Saifin v1 and Sun Application Server 8.1 and 8.2 (J2EE SDK Reference Implementation).

This lab will present the GlassFish Tools Bundle for Eclipse. The lab also shows how latest Java EE technologies such as JSP, Servlet 3.0 and JPA projects are built and deployed to GlassFish using Eclipse.

Copyright
Copyright 2009 Sun Microsystems, Inc. All rights reserved. Sun, Sun Microsystems,
the Sun logo, Solaris, Java, the Java Coffee Cup logo, JavaOne, the JavaOne logo,
and all Solaris-based and Java-based marks and logos are trademarks or registered
trademarks of Sun Microsystems, Inc. in the United States and other countries.

Prerequisites

 

This hands-on lab assumes you have some basic knowledge of, or programming experience in, the following technologies:

  • Java EE technology
  • GlassFish Servers and Eclipse IDE

System Requirements

  • JDK 1.6.0_12 or above (except for Mac OS)
  • Supported OS: WinXP SP2, Mac OS X , Linux (Redhat or Ubuntu)
  • Memory requirement: 1G
  • Disk space requirement: 600MB

Software Needed For This Lab

 

Please install the following set of software. If you have any questions on installation, please feel free to send questions to the lab forum mentioned below.


Notations Used in This Documentation

 
  • <lab_root> - directory into which lab zip file is unzipped
    • This document uses <lab_root> to denote the directory under which you have unzipped the lab zip file of this hands-on lab. The name of the lab zip file of this hands-on lab is 7001_glassfisheclipse.zip.
    • Once you unzipped the lab zip file under <lab_root>, it will create a subdirectory called 7001_glassfisheclipse. For example, under Linux, if you have unzipped the lab zip file in the /home/rochelle directory, it will create /home/rochelle/7001_glassfisheclipse directory. Under windows if you unzip the lab file to the drive C: then you will have C:/7001_glassfisheclipse
  • <BUNDLE_HOME> - default directory
    • Window:  C:/Program Files/GlassFish-Tools-Bundle-For-Eclipse-<version>
    • Mac OS:  /Applications/GlassFish-Tools-Bundle-For-Eclipse-<version>.app
    • Linux: /opt/GlassFish-Tools-Bundle-For-Eclipse-<version>
  • GlassFish Servers: 
    • V2.1: <BUNDLE_HOME>/glassfishv2.1
    • V3 Prelude: <BUNDLE_HOME>/glassfishV3-prelude

Lab Exercises

 

Additional Resources

 

Where To Go For Help

 
  • You can send technical questions via email to the authors of this Hands-on lab (and experts on the subject) or you can send your questions to the public users alias:
  • For general questions and feedback on JavaOne Hands-On Labs, please use the JavaOne2009_HOL_Forum
 

Back to top
To exercises

Update Your Java Runtime Environment