commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <>
Subject Re: [daemon] Wrap batch(*.bat) files as windows service
Date Wed, 01 Jun 2011 11:49:12 GMT
On 1 June 2011 07:32, Trasca Virgil <> wrote:
> Hi,
>  There is a java application which is running as a server and currently there
> are two bat files to start and stop the server - startServer.bat and
> shutServer.bat
> The startServer.bat is using ant launcher to start the java application.
> I am trying to wrap those 2 bat files as a windows service using Apache Commons
> Daemon. Is this possible?
> I am trying to build the service without writing any additional java code.

It should be possible to extract the Ant launcher command-line from
the script, and just execute that as a Java application.
If necessary, just add "ECHO ON" before the line that starts the
application to see what is being sent.

> Should it be possible using commons daemon to wrap bat files as a windows
> service? Is there any example available anywhere?
> Thank you,
> Virgil

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message