For Programmers: Free Programming Magazines  


Home > Archive > Java Help > July 2006 > Running a Java App as a Service









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Running a Java App as a Service
Raga

2006-07-26, 8:01 am

Hi,

I have a pure java application which I want to run as a service. Any
suggestions on how to do it ? I saw some articles saying how to use JNI
to do it along with C code. But I am looking for a pure Java solution.
Also, some said that -Xrs option of the 'java' command would help. But
when I ran the application with 'Xrs' option, I didn't notice any
difference from the run without the option.

Thanks.

Ingo R. Homann

2006-07-26, 8:01 am

Hi,

Raga wrote:
> I have a pure java application which I want to run as a service.


Some time ago, I used JSL (Java Service Launcher). It worked fine. (But
I do not know if it is limited to a certain java version. I used java
1.4, IIRC).

Ciao,
Ingo

Raga

2006-07-26, 8:01 am

Thanks for the pointer!


Ingo R. Homann wrote:

> Hi,
>
> Raga wrote:
>
> Some time ago, I used JSL (Java Service Launcher). It worked fine. (But
> I do not know if it is limited to a certain java version. I used java
> 1.4, IIRC).
>
> Ciao,
> Ingo


IchBin

2006-07-26, 7:03 pm

Raga wrote:
> Hi,
>
> I have a pure java application which I want to run as a service. Any
> suggestions on how to do it ? I saw some articles saying how to use JNI
> to do it along with C code. But I am looking for a pure Java solution.
> Also, some said that -Xrs option of the 'java' command would help. But
> when I ran the application with 'Xrs' option, I didn't notice any
> difference from the run without the option.
>
> Thanks.
>

You could look at 'Java Service Wrapper'.

http://wrapper.tanukisoftware.org

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
________________________________________
__________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
Raga

2006-07-27, 8:01 am

Thanks!

I have doubts on the licensing of apache Commons Daemon & Java Service
Wrapper.

Is it ok to bundle Java Service Wrapper with a company's proprietary
product & sell the product? Meaning say if a company product named
product-1 uses Java Service Wrapper to run as a Windows Service. Is it
ok to sell product-1 (naturally Java Service Wrapper has to be bundled
with it to enable it to be run as a Windows Service) as a proprietary
product?

Thanks.





IchBin wrote:

> Raga wrote:
> You could look at 'Java Service Wrapper'.
>
> http://wrapper.tanukisoftware.org
>
> Thanks in Advance...
> IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
> ________________________________________
__________________________________
>
> 'If there is one, Knowledge is the "Fountain of Youth"'
> -William E. Taylor, Regular Guy (1952-)


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com