Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

A Geronimo Server Runtime in GEP associates a Geronimo 2.1 2 Server installation with a JRE to be used to run that server. A Geronimo Server in GEP associates a Geronimo Server Runtime with a profile consisting of Security settings, Publish Settings, Port Configuration, JVM settings to be used with that Geronimo Server Runtime. ExcerpthiddentrueINLINE

This page discusses how to define Geronimo servers and server runtimes in Eclipse.

Before defining a Geronimo server runtime, you have to install a Geronimo Eclipse Plugin.

Defining a Geronimo server runtime

...

Follow the steps below to define a new Geronimo v2.1 2 Server:

  1. Launch the Define a New Server dialog using one of the following:
    • From the Servers view in the Java EE Perspective: Right-click, and New -> Server.
    • From any Perspective: Select File -> New -> Other -> Server.



  2. Select Apache Geronimo v2.2 Server, specify the server name (by default Apache Geronimo v2.2 Server at localhost), and select an Apache Geronimo v2.2 from the Server runtime environment dropdown and click Next.


    Note

    Additional Server Runtimes can be installed by clicking on Configure runtime environments... button and return to this step once done to select the newly added server runtime. Or you can add another Geronimo 2.2 runtime environment by clicking "Add...".

  3. Modify Hostname, Administrator Id, Administrator password, Web Connector port and RMI Naming port if necessary and click Finish. Normally you will not have to change the default values for these fields for a newly installed Geronimo 2.2 server.



This completes defining a new Geronimo 2.2 server. The newly added server will appear in the Servers view. The server can be started by selecting the server and clicking on the Start server button.


...



...

A Geronimo Server can also be defined while creating a Geronimo Server Runtime by checking the option Create a new local server. This will present an additional dialog to configure the hostname, ports, etc.

...

Administering the server

To view the server status in the Java EE perspective, open the Servers view. GEP monitors the server's status and sets the stopped, starting, and started indicators appropriately. This information is accurate even if you do not start or stop the server using Eclipse.

...

  1. In the Java EE perspective, open the Servers view.
  2. On the Server panel, right click on the server to be started.
  3. On the resulting context menu, click Start.

Note that you can start the server in debug or profiling mode if you installed Test and Performance Tools Platform (TPTP) eclipse plugin.

Stopping the server

Use this procedure to stop a server using the Eclipse framework.

...

  1. In the Java EE perspective, open the Servers view.
  2. On the Server panel, right click on the server to be started.
  3. On the resulting context menu, click Debug.

Debugging a remote application on an already running server

Before debugging the remote application on a running server, you have to start the server under jdpa debugger using geronimo.sh/bat:

No Format

geronimo jpda run

or

No Format

geronimo jpda start

Use this procedure to attach a remote application (a WAR file in this example) to an already running server started in debug mode.

...

  • Name: as desired
  • Project: the WAR file you want to bebug on the server
  • Host: the server's hostname
  • Port: 5005 (or the appropriate value if the server's debug port has been changed.)

Creating custom server assemblies

Starting from Geronimo 2.2, you can customize server assemblies with GEP in Eclipse. See Assembling a server using GEP for more details about creating server assemblies using GEP.

Deploying and debugging applications

You can deploy or test your assets using GEP. See Deploying and debugging applications using GEP for more information about how to deploy or test applications in Eclipse

...

.

Creating a new project

Once Geronimo Server Runtimes are defined, Eclipse provides these runtime for selecting as a target runtime while creating an EJB, Web and Java EE projects. Notice the Target Runtime field in the Dynamic Web Project dialog shown in the figure below.



Upon adding the Geronimo 2.2 server runtime as the target runtime, the Geronimo server libraries and Java EE specification libraries get automatically added to the build path of the project. GEP will also create Geronimo specific deployment plans.

...