I have a REST endpoint which, in some cases, reboots itself. (The
overall system uses a Tanuki JSW launcher, and it calls System.exit to
ask for a restart).

It would be cleaner if there were a way to push the reply before the
service function returns. Otherwise, I need to create a thread that
pauses for a bit and then calls exit.

Is there something?

Reply via email to