If you look into the MANIFEST.MF in the bin/server.jar file, you'll see the main entrance is org.apache.geronimo.cli.daemon.DaemonCLI. To understand the arguments that need to be passed in, set GERONIMO_BATCH_ECHO=on in Windows, then issue "geronimo run" to see the command line arguments that are used.


On Fri, Feb 26, 2010 at 3:26 PM, sddoubt2 <sddoubt2@gmail.com> wrote:

Hi All,

I am new to geronimo. I want to know how we can start/stop the server via a
Java API call.
For eg : To deploy a module on the server we can extend DeployerCLI and pass
the arguments as options,command and arguments to the command.

Class Test extends DeployerCLI {

int status = new


Similarly, what class should be extended to start/stop the server and what
arguments should be passed to it?
Should DaemonCLI class be used? It will be helpful if someone can provide a
sample code to show how this can be done.

Thanks a lot for your help!!
View this message in context: http://n3.nabble.com/Start-the-server-programmatically-by-using-Java-API-tp416760p416760.html
Sent from the Users mailing list archive at Nabble.com.