geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jack Cai <greensi...@gmail.com>
Subject Re: Start the server programmatically by using Java API
Date Tue, 02 Mar 2010 09:42:47 GMT
The options should be used to start your application (which will then call
DaemonCLI to start Geronimo). Also add to your classpath with the jars
listed in MANIFEST.MF of the bin/server.jar. The args for DaemonCLI.main()
should be just -

String args[] = {“--long"}

-Jack

On Sat, Feb 27, 2010 at 6:44 PM, sddoubt2 <sddoubt2@gmail.com> wrote:

>
> Hi Jack,
> Thanks for your response.
> I  tried running geronimo run by setting GERONIMO_BATCH_ECHO=on
> I got the options as javaagent (jpa.jar) -Djava.endorsed.dirs,
> -Djava.ext.dirs, -Dorg.apache.geronimo.home.dir, -Djava.io.tmpdir, -jar
> executing -jar server.jar
>
> So should these be the arguments of the executeMain method of the DaemonCLI
> class?
> Something like
>
> String args[] = {option value, "-jar","server.jar"}
>
> Is this the right way? Do we need to specify all the options and the
> location of the jars/directories in the path?
> Thanks for ur help !!
> --
> View this message in context:
> http://n3.nabble.com/Start-the-server-programmatically-by-using-Java-API-tp416760p418981.html
> Sent from the Users mailing list archive at Nabble.com.
>

Mime
View raw message