...
- 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
to name your instancefoo
. - There are two ways to do this:
- Add this to your
GERONIMO_OPTS
environment variable, or - Pass it on the java command-line invocation of the server.
- Add this to your
- The server's var directory will then be in
<geronimo_home>/foo
. org.apache.geronimo.server.name
may be any pathname relative to (descending from) <geronimo_home>. For example,servers/bar
would put the server's var directory in<geronimo_home>/servers/bar
.- The
org.apache.geronimo.server.dir
system property may also be used, and it overridesorg.apache.geronimo.server.name
. - Use
org.apache.geronimo.server.name
to specify an absolute path, which need not be relative to <geronimo_home>. For example,/ag20/servers/bar
would put the server's var directory at/ag20/servers/bar
. Otherwise, the two system properties behave the same.
- Use the syntax
mkdir foo
- Copy var to foo.
- Start the server.
Multiple Repositories
First, we consider the case single server instance case, and just add a second repository. Say we want to leave Geronimo in its repository, but add a second repository to deploy our applications. Adding a second repository is pretty easy.
...