users@jersey.java.net

Re: [Jersey] Running resources as a service

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Tue, 10 Mar 2009 11:38:46 +0100

On Mar 10, 2009, at 2:43 AM, Richard Levenberg wrote:

> Thank you Paul I thought there was some way to do it directly with
> HttpServerFactory. Ill check out those packages.
>

Not yet, but if you require that functionality then please log an issue.

Paul.

> r
>
> Paul wrote:
>>
>>
>> It is a bit off topic but read on.
>>
>>
>> To daemonize java programs on unixes, take a look at akuma :
>> http://akuma.dev.java.net/
>>
>>
>> If you target Windows platforms too, take a look at JSW or JSL :
>> http://wrapper.tanukisoftware.org/
>> http://jslwin.sourceforge.net/
>>
>>
>> Paul
>>
>>
>>
>> Le lundi 09 mars 2009 13:35:27, Richard Levenberg a écrit :
>> > I may have missed this already in the forum, but what is the
>> easiest,
>> > with the least overhead, way to run Jersey resources as services. I
>> > already have things running under Tomcat but for certain services
>> I want
>> > them running standalone. I have the following code from the
>> examples:
>> >
>> > HttpServer server =
>> > HttpServerFactory.create("http://localhost:9998/");
>> > server.start();
>> >
>> > System.out.println("Server running");
>> > System.out.println("Hit return to stop...");
>> > System.in.read();
>> >
>> > What is the recommended way to daemonize that code so that it
>> runs as a
>> > service?
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>