On 1 June 2011 07:32, Trasca Virgil <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
