Versions Compared

Key

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

...

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 is named 'geronimo0geronimo' . It can will be created and run using the following. It will use <geronimo_home>/geronimo0geronimo for instance data.

Code Block
<geronimo_home>/bin/startup

Creating A New Server Instance

Note
titleBe Careful

Start with a fresh image of geronimo. Do not use an image that has been used to start geronimo from command line using
java -jar ......

To create an instance named foo do the follwing. All your instance data will be put in <geronimo_home>/foo. All the directories named below are relative to <geronimo_home>.

  1. mkdir foo
  2. Copy var from template directory to foo. A foo/deploy directory and many others will be created automatically when the instance is started.
  3. Edit foo/var/config/config.substitutions.properties and change the portOffset (default value 0). Try using 10, 20, 30.. etc for various instances.

An Example

To create all the instances under a directory named 'servers' copy 'var' to servers/geronimoi and change the portOffset for each instance. The directory <geronimo_home> will look like this-

  1. servers/geronimo1, the instance name is servers/geronimo1
  2. servers/geronimo2, the instance name is servers/geronimo2
  3. servers/geronimo3, the instance name is servers/geronimo3
  4. .................................................................................
  5. .................................................................................

To run ith instance set org.apache.geronimo.server.name property to servers/geronimoi.

...