...
- 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
- This server's var and deploy directory will then be under
<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 under<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 under/ag20/servers/bar
. Otherwise, the two system properties behave the same.
- Use the syntax
mkdir foo
- Copy var/* to foo/var/
- Edit
foo/var/config/config-substitutions.properties
, uncommentportOffset
and change it to a value like1,2,10,11,12,20,21,22,...
so the ports in the new server instance will not conflict with existing server instances you already have defined and/or started. - Start the server.
To deploy applications to the new server instance, you need to specify the PlanNamingPort+portOffset used, such as for portOffset=1:
- deploy -port 1109 1100 list-modules
Multiple Repositories
...