EJB design: Running a java program as a windows NT Service

  1. Hi Folks,
               How can I make my java program run as a Windows NT Service?

    With Regards
    Srinivas Masam& JayaKishore

  2. To do this you can use the executable shipped with Microsoft
    SDK - jntsvc. Basically, what you do is implement a class that subclasses com.ms.service.Service. Compile this class using the microsoft compiler. Take the .class file and jnstvc over it. This will give you an executable that can be installed as a service by typing <Java Class Name>.exe /install.
  3. Here's a site that contains some open source C code that will do the trick.


    Dan Repik
  4. JBOSS FAQ answers this question.

  5. You might also try out


    also known as