DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 4 of 4

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.
    >
    >
    >
    >



Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links