Wiki Markup |
---|
{scrollbar} |
Note |
---|
For the Geronimo javaee6 release bundles, you can only run multiple instance by completely copying the server folder to another, and start a 2nd instance after changing its portOffset value. The feature described on this page was not fully supported yet, using GERONIMO-5987 to track the status. |
Excerpt |
---|
It is possible to run multiple instances of Geronimo on the same machine. |
<geronimo_home>
, the directory where you installed Geronimo....
- Create a directory
foo
under<geronimo_home>
. - Copy
var
,repository
andetc
directories tofoo
.You can use the command deploy:new-server-instance to help you with this step. - Edit
foo/var/config/config-substitutions.properties
and change the portOffset. Try using any integers such as 1, 2, 10, 20, 30.. for various instances.
...
- .
Running an instance
- Set the
org.apache.geronimo.server.name
system property to define a server name before you start the server. This system property is null by default, defining the server instance at<geronimo_home>
as the default instance. Use the syntax-Dorg.apache.geronimo.server.name=foo
to change the server name to an instance namedfoo
located at<geronimo_home>/foo
. Add this to yourGERONIMO_OPTS
environment variable:
...