Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{scrollbar}
Warning
titleWarning

This page is still under construction!

Overview

This article is organized as follows:

It is possible to run multiple instances of geronimo on the same machine. Currently multiple instances of geronimo share the following directories in <geronimo_home>, the directory where you installed Geronimo.

...

bin, lib and schema are read-only, and thus may be shared between instances. The repository is shared, i.e. an application deployed in one instance will show up in the list of deployed modules, but not running, in all the other instances!

The Default Instance 'geronimo'

Coming Soon!
The default instance named 'geronimo' will be created and run using the following. It will use <geronimo_home>/geronimo for instance data.

Code Block
<geronimo_home>/bin/startup

Creating A New Server Instance

...

  1. mkdir foo
  2. Copy var to foo.
  3. Edit foo/var/config/config.substitutions.properties and change the portOffset. Try using 10, 20, 30.. etc for various instances.

An Example

We will be using var as a template.

  • To create all the instances under a directory named

...

  • servers

...

  • copy

...

  • var

...

  • to servers/geronimoi and change the portOffset for each instance.
  • To run ith instance set org.apache.geronimo.server.name property to servers/geronimoi.

Running An Instance

  1. Set the org.apache.geronimo.server.name system property to the instance name before you start the server. Use the syntax -Dorg.apache.geronimo.server.name=foo for an instance named foo located at <geronimo_home>/foo. Add this to your GERONIMO_OPTS environment variable
    Tip
    titleWindows Hint

    set GERONIMO_OPTS=-Dorg.apache.geronimo.server.name=foo

  2. Start the server using startup
    Code Block
    <geronimo_home>/bin/startup
    
  3. To shutdown this instance use the port number of RMI Naming port (default 1099)
    Code Block
    <geronimo_home>/bin/shutdown --port=<port_num>
    
  4. To deploy applications to this instance use the port number of RMI Nmaing port
    Code Block
    <geronimo_home>/bin/deploy -port <port_num> deploy ......
    

The Geronimo Administration Console can also be used for all these operations. Connect to an instance by using the right HTTP port (default 8080)

The Default Instance 'geronimo'

The default instance is nameless, i.e. it is run from <geronimo_home>/var. It can be deleted!

Coming Soon!

The default instance named 'geronimo' will be created and run using the following. It will use <geronimo_home>/geronimo for instance data.

Code Block
<geronimo_home>/bin/startup

Other Useful Enhancements

...