DPML
DPML Metro CLI
HomeUtilitiesStationMetroDepotTransit
Metro Command Line
Description
$ metro -uri <uri>

Runs a metro application given a codebase and optional station callback key. Normally the metro command is invoked by the station as a result of a application start request or as a consequence of station startup. The metro application will continue until explicitly terminated. Normally termination is controlled by the station via the stop command.

$ metro -help
Usage:
metro -uri <uri> | -help
options
  -uri <uri>                       Execute deployment of an application codebase.
    -key -port -config -params
      -key (-k) <key>              Station callback application key.
      -port <port>                 Override default RMI registry port selection.
      -config (-c) <uri>           Application configuration uri.
      -params (-p) <uri>           Application parameters uri.
      -C<property>=<value>         Set a context entry value.
  -help                            Print command help.
Options
keySelect an application profile matching the key.
configSupply an overrriding component configuration via a uri reference to a configuration source document.
paramsSupply an overriding parameter defintion for reference to a property file.
COverride a context entry with the supplied value.
portNominate an alternative station instance running on the supplied port.
Example
$ metro -uri link:part:dpml/planet/http/dpml-http-server
[460  ] [INFO   ] (demo): Starting
[460  ] [INFO   ] (org.mortbay.http.HttpServer): Version Jetty/5.1.x
[460  ] [INFO   ] (org.mortbay.util.Container): Started net.dpml.http.impl.HttpServerImpl@15356d5
[460  ] [INFO   ] (org.mortbay.util.Credential): Checking Resource aliases
[460  ] [INFO   ] (org.mortbay.util.Container): Started HttpContext[/,/]
[460  ] [INFO   ] (org.mortbay.http.SocketListener): Started SocketListener on 0.0.0.0:8080