Ratpack Forum
Search
everywhere
only in this topic
Advanced Search
Shutdown hook for Ratpack?
Classic
List
Threaded
♦
♦
Locked
3 messages
dbirtwell
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Shutdown hook for Ratpack?
All:
I'm wondering if there is some sort of shutdown hook for Ratpack so one can free resources, such as DB connections?
I thought of running the whole script or app inside a try/catch/finally block, but that just feels wrong.
Any ideas?
Dave
Luke Daley
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: Shutdown hook for Ratpack?
Administrator
Interesting idea. There's nothing at the moment.
Most of the time, the app is going to be shutdown as the JVM is terminating. I've added
https://github.com/ratpack/ratpack/issues/67
as a feature request for a hook regardless.
dbirtwell
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: Shutdown hook for Ratpack?
Luke:
Thanks!
Dave
Free forum by Nabble
Edit this page