From last 2 days I was busy in wrapping a Java application in a Windows Service. Tried many open source tools like Java Service Wrapper, J2Exe, JSL. But culdn't find a solution. Finally i found JavaService.Exe in one of the blogs. This is very easy to configure. After trying many tools, I felt this is the best tool to wrap Java application in a Windows Service.
Software and documentation can be found in
JavaService contains a Windows executable service that allows you to launch any Java application in a specified environment.
Copy JavaService.exe to your project and rename it to match whatever you want your service to be named (this is what you will see in the Windows Task Manager).
Next, you need to create a class to execute. JavaService can execute any application with a main() method, or you can specify a method to execute when the service starts. It must return void and accept as a parameter a String[].
Finally, you use the JavaService.exe file to install a Windows NT Service. This is accomplished by passing it a "-install" command line parameter followed by a set of additional parameters
This entry was posted
on Sunday, September 21, 2008
.
You can leave a response
and follow any responses to this entry through the
Subscribe to:
Post Comments (Atom)
.
1 comments