hi 🙂 does anyone have any experience with ring-cors ?
@buzzdan We use it in production. What's your question?
How can I add something like shutdown hook into the Jetty or other servers? I know that I can do it via Ring's init
and destroy
functions but what if I just want to run server via lein run
(which calls (jetty/run-jetty dummy-app {:port 8090})
)? So is there a way how to gracefully shutdown such an application?
I have a application on the AWS which uses a threadpool so I suppose that it needs to shutdown the pool between deployments
So far I was doing it with Ring on the Tomcat, now I want to run the app in Java SE environment therefore is not an option anymore