I've a standalone application that I'm trying to implement a shutdown for.
Initially I had this as a very simple Socket listen. However, wanting to
put a more proper API in place I'm looking at REST and RESTlet is looking
good.

I've got it mostly working. That is, I have something that handles
authentication and responds to a PUT request on http://host:port/shutdown.
However, whilst this shuts down the various bits of my application, it
doesn't shut down the REST server itself so the JVM keeps on running.

I tried calling #stop on the Application but that doesn't seem to do
anything. I can get it to terminate by calling stop on the top level
Component, but that doesn't exit gracefully as the originating PUT handler
throws exceptions.

Is there a way to gracefully shut everything down in response to a PUT
request?

-- 
Sean - Its a conical sort of effort

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3076917

Reply via email to