RE: Command line to STOP Restlet server

2009-01-15 Thread Jerome Louvel
www.noelios.com -Message d'origine- De : news [mailto:n...@ger.gmane.org] De la part de Leshek Envoye : jeudi 15 janvier 2009 00:21 A : discuss@restlet.tigris.org Objet : Re: Command line to STOP Restlet server > When you stop the parent Component, it stops all the child connectors.

Re: Command line to STOP Restlet server

2009-01-14 Thread Leshek
> When you stop the parent Component, it stops all the child connectors. Sounds like a simple, nice, soft stop for me, but... What I am thinking is to respond to URI request like PUT .../shutdown (limit to localhost request and run through authentication guard as all the other requests). Ho

RE: Command line to STOP Restlet server

2009-01-14 Thread Jerome Louvel
eshek Fiedorowicz Envoye : mercredi 14 janvier 2009 06:35 A : discuss@restlet.tigris.org Objet : Re: Command line to STOP Restlet server All good, helpful hints, but... by Restlet designed (the best practice?) way to stop Restlet internal HTTP server? Leshek Ps. I have re-registered with tigris,

Re: Command line to STOP Restlet server

2009-01-13 Thread Leshek Fiedorowicz
All good, helpful hints, but... by Restlet designed (the best practice?) way to stop Restlet internal HTTP server? Leshek Ps. I have re-registered with tigris, thank you Jerome! -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMe

RE: Command line to STOP Restlet server

2009-01-13 Thread Jerome Louvel
ssage d'origine- De : news [mailto:n...@ger.gmane.org] De la part de Leshek Envoye : mardi 13 janvier 2009 00:48 A : discuss@restlet.tigris.org Objet : Command line to STOP Restlet server I want to have stop and exit restlet server command line interface. The start is simple (java -jar myRes

Re: Command line to STOP Restlet server

2009-01-13 Thread Simon Reinhardt
Leshek wrote: > I know from within I can do getContext().getApplication().stop() > I could to it in response to http request .../STOP, but... I want to keep > control on the server only. Apart from the Service Wrapper already pointed out, you could always restrict access to such a resource. Eith

Re: Command line to STOP Restlet server

2009-01-13 Thread Tim Peierls
Take a look at Java Service Wrapper: http://wrapper.tanukisoftware.org/ It covers all sorts of possibilities. --tim On Mon, Jan 12, 2009 at 12:29 PM, Leshek wrote: > I want to have stop and exit restlet server command line interface. > The start is simple (java -jar myRest.jar). > > I know fro

Command line to STOP Restlet server

2009-01-13 Thread Leshek
I want to have stop and exit restlet server command line interface. The start is simple (java -jar myRest.jar). I know from within I can do getContext().getApplication().stop() I could to it in response to http request .../STOP, but... I want to keep control on the server only. So I am looking f

Command line to STOP Restlet server

2009-01-13 Thread Leshek
I want to have stop and exit restlet server command line interface. The start is simple (java -jar myRest.jar). I know from within I can do getContext().getApplication().stop() I could to it in response to http request .../STOP, but... I want to keep control on the server only. So I am looking f