...
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 | ||
---|---|---|
| ||
Start with a fresh image of geronimo. Do not use an image that has been used to start geronimo from command line using |
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>
.
mkdir foo
- Copy var from
template
directory to foo. A foo/deploy directory and many others will be created automatically when the instance is started. - 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-
- servers/geronimo1, the instance name is servers/geronimo1
- servers/geronimo2, the instance name is servers/geronimo2
- servers/geronimo3, the instance name is servers/geronimo3
- .................................................................................
- .................................................................................
To run ith instance set org.apache.geronimo.server.name property to servers/geronimoi.
...