...
- Create a directory
foo-server
under<geronimo_home>
. - Copy
var
andetc
directories tofoo-server
. You can use the command deploy:new-server-instance to help you with this step. - Recommended: create
foo-server/repository
and set it up as a second repository for the Geronimo instance. See Configuring multiple Repositories - Edit
foo-server/var/config/config-substitutions.properties
and change the portOffset. Try using any integers such as 1, 2, 10, 20, 30.. for various instances.
...
- Start the server using startup
No Format borderStyle solid <geronimo_home>/bin/startup
- To shutdown this instance, use the port number of RMI Naming port (default 1099). For the new instance
foo-server
, the port number should be 1099 plus portOffset specified infoo-server/var/config/config-substitutions.properties
.No Format borderStyle solid <geronimo_home>/bin/shutdown --port <RMI_port_num>
- To deploy applications to this instance use the port number of RMI Naming port
- This deploys to the primary Geronimo repository
No Format borderStyle solid <geronimo_home>/bin/deploy --port <RMI_port_num> deploy <applications>
- This deploys to a secondary Geronimo repository exclusive to the Geronimo server defined in org.apache.geronimo.server.nameas
GERONIMO_SERVER=foo-server
. See Configuring multiple Repositories for more detailed instructions.No Format borderStyle solid <geronimo_home>/bin/deploy --port <RMI_port_num> deploy --targets <foo_repo_name> <applications>
...