Hello,

I've tried Java Service Launcher (JSL) before when I had
to write a Java application that have to run as an
NT Service. But you would have to implement an interface
that will be called when the service stop is called. You might
want to wrap the cli shutdown broker as an implementation of
this interface. This is the url http://www.roeschter.com/index.html
There is also JNT, which only runs in Java 1.2 or higher. I have
never tried this, but here is the url http://www.eworksmart.com/JNT/

Hope this helps.

Oliver

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Gregor Kovač
Sent: Saturday, July 07, 2001 7:06 AM
To: [EMAIL PROTECTED]
Subject: [developers] NT Service


Hi!

I did try JavaService but it crashes when I'm using IBM's JDK 1.3.0. I use
this JDK in my production environment and I cannot just go and reinstall
JDK with a SUN's implementation.


Best regards,
         Kovi


At 11:31 7.7.01 +0200, you wrote:
>At 06:14 PM 7/07/2001, Gregor Kovač wrote:
>>Hi!
>>
>>As I see Mcrosoft's JDK only suppots Java 1.1.4. Can I only use this
>>jntsvc program or I have to use their JDK to run Java programs?
>
>You might want to check out JavaService from Alexandria Software
>Consulting (http://www.alexandriasc.com/software/JavaService/index.html)
>which is "a Win32 executable that allows any Java class to be run as an NT
>service. It uses JNI's invocation API to create a Java Virtual Machine
>using any JNI compliant Java implementation. JavaService can call the
>typical entry method
>static void main(String[])
>in order to start the service, or any other method you choose. In order to
>stop the service it can call another method or simply terminate the JVM.
>JavaService is free software. It is distributed using a BSD style license."
>
>It is working well for us running Swift routers on both NT and 2000
>machines, it is easy to setup and will install and un-install the service
>from the command line.
>
>HTH
>
>Robert
>
>>At 21:50 6.7.01 +0200, you wrote:
>>>One or more people were asking about running SwiftMQ as a service on NT.
I
>>>came across this in my lab notes. I checked the link and it still works!
>>>
>>>-----------------------
>>>You can run a Java server application as an NT service if you use the
>>>Microsoft SDK for Java.(Download the latest version from Microsoft's Web
>>>site at http://www.microsoft.com/java/sdk/.) The SDK includes a package
>>>called com.ms.service which contains a Service class for creating NT
>>>services. You also need to turn the Java application into an executable
NT
>>>service using the jntsvc.exe utility provided with the SDK. If you look
in
>>>the bin directory of the SDK, there is a jntsvc subdirectory that
contains
>>>jntsvc.exe and an example Java program implementing an NT service. More
>>>information is available in the Microsoft SDK for Java documentation.
>>>
>>>
>>>============================================
>>>Glenn A. McComb             tel 858.551.9218
>>>La Jolla, CA                fax 858.777.3302
>>>[EMAIL PROTECTED]              www.mccomb.com
>>>============================================
>>>High-Performance Internet & Wireless Systems
>>>      Architecture, Design & Development
>>>
>>>
>>>------------------------------------------------------
>>>SwiftMQ developers mailing list * http://www.swiftmq.com
>>>To unsubscribe from this list, send an eMail to
>>>[EMAIL PROTECTED] and write in the body of your message:
>>>UNSUBSCRIBE developers <your-email-address>
>>>Archive: http://www.mail-archive.com/developers@mail.iit.de/
>>
>>
>>------------------------------------------------------
>>SwiftMQ developers mailing list * http://www.swiftmq.com
>>To unsubscribe from this list, send an eMail to [EMAIL PROTECTED] and
>>write in the body of your message:
>>UNSUBSCRIBE developers <your-email-address>
>>Archive: http://www.mail-archive.com/developers@mail.iit.de/
>>
>
>
>------------------------------------------------------
>SwiftMQ developers mailing list * http://www.swiftmq.com
>To unsubscribe from this list, send an eMail to [EMAIL PROTECTED] and
>write in the body of your message:
>UNSUBSCRIBE developers <your-email-address>
>Archive: http://www.mail-archive.com/developers@mail.iit.de/
>
>
>


------------------------------------------------------
SwiftMQ developers mailing list * http://www.swiftmq.com
To unsubscribe from this list, send an eMail to
[EMAIL PROTECTED] and write in the body of your message:
UNSUBSCRIBE developers <your-email-address>
Archive: http://www.mail-archive.com/developers@mail.iit.de/


------------------------------------------------------
SwiftMQ developers mailing list * http://www.swiftmq.com
To unsubscribe from this list, send an eMail to 
[EMAIL PROTECTED] and write in the body of your message:
UNSUBSCRIBE developers <your-email-address>
Archive: http://www.mail-archive.com/developers@mail.iit.de/




Reply via email to