Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This document is organized in the following sections:

Children Display
all
all

Geronimo GShell Commands

The following list shows the Geronimo specific commands available:

No Format
borderStylesolid

deploy/deploy                Deploy a module
deploy/undeploy              Undeploy a module
deploy/start                 Start a module
deploy/stop                  Stop a module
deploy/restart               Restart a module
deploy/list-modules          List modules
deploy/redeploy              Redeploy a module
deploy/distribute            Distribute a module

deploy/connect               Connect to a Geronimo server
deploy/disconnect            Disconnect from a Geronimo server

deploy/install-library       Install library
deploy/list-targets          List targets

deploy/install-plugin        Install a plugin
deploy/list-plugins          Install plugins into a geronimo server

deploy/assemble              Extract a geronimo server from the current one

geronimo/start-server        Start a Geronimo server
geronimo/stop-server         Stop a Geronimo server

geronimo/start-client        Start a Geronimo application client

Starting and Stopping Geronimo in Gshell

Geronimo can be started through gshell using the geronimo/start-server command.

No Format
bgColor#000000
borderStylesolid

jason@Jason-Warners-Computer.local:/> geronimo/start-server --background
Launching Geronimo Server...
Booting Geronimo Kernel (in Java 1.5.0_13)...

If the --background option is not used, then the server instance will maintain control of the terminal and a new instance of gshell must be started to interact with the server.

Other useful geronimo/start-server options (Use geronimo/start-server --help to see a full list of options).

No Format
bgColor#000000
borderStylesolid

start-server
 --

  -A (--javaagent) JAR           Use a specific Java Agent, set to 'none' to dis
                                 able
  -D (--property) NAME=VALUE     Define system properties
  -G (--gproperty) NAME=VALUE    Define an org.apache.geronimo property
  -H (--home) DIR                Use a specific Geronimo home directory
  -J (--javaopt) FLAG            Set a JVM flag
  -b (--background)              Run the server process in the background
  -h (--help)                    Display this help message
  -j (--jvm) DIR                 Use a specific Java Virtual Machine for server
                                 process
  -l (--logfile) FILE            Capture console output to file
  -m (--module) NAME             Start up a specific module by name
  -q (--quiet)                   Suppress informative and warning messages
  -t (--timeout) N               Specify the timeout for the server process in s
                                 econds
  -v (--verbose)                 Enable verbose output; specify multipule times
                                 to increase verbosity

Geronimo can be stopped using the geronimo/stop-server command.

No Format
bgColor#000000
borderStylesolid

jason@Jason-Warners-Computer.local:/> geronimo/stop-server -u system -w manager
Stopping Geronimo server: localhost:1099
[] received stop signal

If username -u and password -w are not provided on the command line, the user will be prompted for them before the server shutdown process is started. The full set of geronimo/stop-server options can be seen in gshell using the --help option, the same way as for geronimo/start-server.

Due to a bug in Geronimo v2.1 (https://issues.apache.org/jira/browse/GERONIMO-3845), stop-server will only work if you use system/manager as the user id/password. This bug will be addressed in the next Geronimo release. You can always use the shutdown command to stop your server.

Connecting to an Already Running Geronimo Instance

...