Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

Build-in commands like set, clean, help, quit and so on are defined in gshell-builtin project
Geronimo commands like start-server,stop-server adn deploy commands like start-module are defined in geronimo-commands project.
Jaxws commands  are defined in  geronimo-jaxws-builder project.
Remote commands are defined in gshell-remote-client project.

GShell Startup progress 

Wiki Markup1 org.codehaus.plexus.ClassLoader load every jar defined in etc/gsh-classworlds.conf
2 org.apache.geronimo.gshell.plugin.CommandDiscoverer load the commands.xml in gshell-builtin.jar/META-INF/gshell
3 All the commands register in org.apache.geronimo.gshell.registry..CommandRegistry.
4 The same process for geronimo-commands and jaws-commands
5 org.apache.geronimo.gshell.layout.loader.XMLLayoutLoader load the layout.xml in etc/layout.xml
6 GShell start up DefaultLayoutManager.
7 GShell start up org.apache.geronimo.gshell.DefaultCommandLineBuilder and DefaultCommandExecutor
8 Gshell read argument from console and read history from Document and Setting/\[username\]/.gshell/gshell.history
9 Finish initialization and waiting

Panel

Note:

Command.xml shows reflection between command id and command implementation

Layout.xml shows reflection between command line string and command id

...

2 Modify configuration file

...

Modify file layout.xml in \ [server dir\]/etc
E.g

Code Block
.......
<!-- Geronimo -->
        <group>
              <name>geronimo</name>
                  <nodes>
                      <command>
                          <name>stop-server</name>
                          <id>geronimo-commands:stop-server</id>
                      </command>
                      <command>
                          <name>test</name>
                          <id>geronimo-commands:test</id>
                      </command>
                  </nodes>
        </group>
.....

...