Run java servers as windows services


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Run java servers as windows services

Hybrid View

  1. #1
    Sergio Pereira Guest

    Run java servers as windows services

    Hi, all!
    I've an application which is written part in VB and part in java running on
    Win2K.
    The problem is: how to start the java servers (web servers and object
    servers) when the system starts. I'd like to make them services but I do not
    know how to do it.
    I used the ntsvc.ocx to compile a VB application that run as a service and
    starts the java servers (Shell "Start_java.bat", vbNormalNoFocus)
    The problem is that the java servers shut down as soon as someone logs-in
    and then log-off in the machine running the servers!

    Is there a way to prevent them from shutting down ? The VB service stills
    there after the user logs-off, but the java servers are not.

    Thanks for any help!

    ----------------------------------------------------
    Sergio Pereira
    Consultant
    Neumark Technology Group, Inc.





  2. #2
    Ruchi Dhar Guest

    Re: Run java servers as windows services


    Try the following which makes the java apps to services.

    RunExec(http://www.winwinsoft.com/goodies/RunExeSvc/index.html)
    JNT (http://www.eworksmart.com/JNT)

    "Sergio Pereira" <nope@hide-that-email.com> wrote:
    >Hi, all!
    >I've an application which is written part in VB and part in java running

    on
    >Win2K.
    >The problem is: how to start the java servers (web servers and object
    >servers) when the system starts. I'd like to make them services but I do

    not
    >know how to do it.
    >I used the ntsvc.ocx to compile a VB application that run as a service and
    >starts the java servers (Shell "Start_java.bat", vbNormalNoFocus)
    >The problem is that the java servers shut down as soon as someone logs-in
    >and then log-off in the machine running the servers!
    >
    >Is there a way to prevent them from shutting down ? The VB service stills
    >there after the user logs-off, but the java servers are not.
    >
    >Thanks for any help!
    >
    >----------------------------------------------------
    >Sergio Pereira
    >Consultant
    >Neumark Technology Group, Inc.
    >
    >
    >
    >



  3. #3
    dale a Guest

    Re: Run java servers as windows services


    "Ruchi Dhar" <rdhar@verticalnet.com> wrote:
    >
    >Try the following which makes the java apps to services.
    >
    >RunExec(http://www.winwinsoft.com/goodies/RunExeSvc/index.html)
    >JNT (http://www.eworksmart.com/JNT)
    >
    >"Sergio Pereira" <nope@hide-that-email.com> wrote:
    >>Hi, all!
    >>I've an application which is written part in VB and part in java running

    >on
    >>Win2K.
    >>The problem is: how to start the java servers (web servers and object
    >>servers) when the system starts. I'd like to make them services but I do

    >not
    >>know how to do it.
    >>I used the ntsvc.ocx to compile a VB application that run as a service

    and
    >>starts the java servers (Shell "Start_java.bat", vbNormalNoFocus)
    >>The problem is that the java servers shut down as soon as someone logs-in
    >>and then log-off in the machine running the servers!
    >>
    >>Is there a way to prevent them from shutting down ? The VB service stills
    >>there after the user logs-off, but the java servers are not.
    >>
    >>Thanks for any help!
    >>
    >>----------------------------------------------------
    >>Sergio Pereira
    >>Consultant
    >>Neumark Technology Group, Inc.
    >>
    >>
    >>
    >>

    >



  4. #4
    Ken McNamee Guest

    Re: Run java servers as windows services


    The best way to make a Java app run as an NT service is to use the Microsoft
    SDK for Java. It includes the com.ms.service.Service class which you can
    extend and the jntsvc.exe utility that will create the exe file. Best of
    all, it's free and it's not a hack or workaround like the VB service controls.

    "Sergio Pereira" <nope@hide-that-email.com> wrote:
    >Hi, all!
    >I've an application which is written part in VB and part in java running

    on
    >Win2K.
    >The problem is: how to start the java servers (web servers and object
    >servers) when the system starts. I'd like to make them services but I do

    not
    >know how to do it.
    >I used the ntsvc.ocx to compile a VB application that run as a service and
    >starts the java servers (Shell "Start_java.bat", vbNormalNoFocus)
    >The problem is that the java servers shut down as soon as someone logs-in
    >and then log-off in the machine running the servers!
    >
    >Is there a way to prevent them from shutting down ? The VB service stills
    >there after the user logs-off, but the java servers are not.
    >
    >Thanks for any help!
    >
    >----------------------------------------------------
    >Sergio Pereira
    >Consultant
    >Neumark Technology Group, Inc.
    >
    >
    >
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center