Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This tutorial walks you through configuring, developing and deploying an enterprise application with Eclipse and Geronimo. To run this tutorial, as a minimum you will be required to have installed the following prerequisite software.

  • Sun JDK 56.0+ (J2SE 1.56)
  • Eclipse 3.3.1.1 4 (Eclipse Classic package of Europa Ganymede distribution), which is platform specific
  • Web Tools Platform (WTP) 2.0.1
  • Data Tools Platform (DTP) 1.5.1
  • Eclipse Modeling Framework (EMF) 2.3.1
  • Apache Geronimo Server v2.x installed
    Note

    Geronimo version 2.1 is used in this tutorial but other versions (e.g., 2.2) can be used instead.

    Graphical Editing Framework (GEF) 3.3.1

Details on installing eclipse are provided in the Development environment section. This tutorial is organized in the following sections:

...

  1. Select File -> New, select Project... and in the popup window select select Enterprise Application Project in J2EE category and click Next.
  2. In the EAR Application Project wizard type in SampleEAR as the Project name: and select Apache Geronimo v2.1 in Target Runtime. Leave the rest as it is.
    Image Removed
    Image Added

  3. Click Next twice.
  4. In the J2EE Modules to Add to the EAR window select the Generate Deployment Descriptor checkbox and click Next.



  5. In the Geronimo Deployment Plan window enter the values as specified below. To find out more about what these values mean check the Deployment plans section.
    Section
    • Group Id: sampleear
    • Artifact Id: sample-ear
    • Version: 1.0
    • Artifact Type: ear



  6. Click Finish.

...

The next step is to create an EJB project to hold your EJBs.

  1. Press Ctrl-NSelect File -> New, select EJB Project in EJB category and click Next.
  2. In the EJB Project wizard type in SampleEJB as the project name and select Add project to an EAR checkbox. Leave the rest as is and click Next.
    Image Removed
    Make sure that 5.0 for the Java facet in the Project Facets popup window's selected and click Next.
    Image Removed
    Image Added

  3. Unselect the Create an EJB Client JAR module to hold the client interfaces and classes checkbox. We're not interested in it. Click Next.



  4. Fill in the Geronimo Deployment Plan fields with the following values:
    Section
    • Group Id: sampleear
    • Artifact Id: sample-ejb
    • Artifact Type: ejb



  5. Click Finish.

...

Now that you have EAR and EJB projects created the next step is to create a Dynamic Web project to hold your web application.

  1. Press Ctrl-NSelect File -> New, select Dynamic Web Project in Web category and click Next.
  2. In the Dynamic Web Project wizard type in SampleWAR as the project name and select Add project to an EAR checkbox. Leave the rest as is and click Next.
    Image Removed
    Make sure that 5.0 for the Java facet in the Project Facets popup window's selected and click Next twice.
    Image Removed
    Image Added

  3. Fill in the Geronimo Deployment Plan fields with the following values:
    Section
    • Group Id: sampleear
    • Artifact Id: sample-war
    • Artifact Type: war



  4. Click Finish.

...