ring

buzzdan 2018-02-19T12:10:22.000075Z

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

seancorfield 2018-02-19T17:53:01.000491Z

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

petr.mensik 2018-02-19T18:03:59.000476Z

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.mensik 2018-02-19T18:07:06.000249Z

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

petr.mensik 2018-02-19T18:07:48.000086Z

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