Fork me on GitHub
#ring
<
2018-02-19
>
buzzdan12:02:22

hi 🙂 does anyone have any experience with ring-cors ?

seancorfield17:02:01

@buzzdan We use it in production. What's your question?

petr.mensik18:02:59

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?

petr.mensik18:02:06

I have a application on the AWS which uses a threadpool so I suppose that it needs to shutdown the pool between deployments

petr.mensik18:02:48

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