RE: InterruptedException when stopping component

2009-03-16 Thread Romilly Cocking
I've found a workaround; I start another thread and send stop() to the container after a 100 ms delay. It works, but it's not pretty. Is there a better solution? -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=1326444

Re: InterruptedException when stopping component

2009-03-16 Thread Romilly Cocking
to get your new thread. Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com -Message d'origine- De : Romilly Cocking [mailto:romilly.cock...@gmail.com] Envoyé : dimanche 15 mars 2009 12

InterruptedException when stopping component

2009-03-15 Thread Romilly Cocking
I've implemented a ShutdownRestlet that allows clients to make a remote request to shut down its contolling Component. It works after a fashion, but an InterruptedException is thrown whenever I request a shutdown. I suspect that the ShutdownRestlet thinks it still has work to do when the