Add servlet in a clojure ring project

230 Views Asked by At

I am integrating Togglz library into a Clojure Ring project to support feature toggles and would like to activate the Togglz admin console. According to the Togglz documentation it is necessary to add a servlet in the /WEB-INF/web.xml file for projects that don't support Servlet 3.0. I used the :uberjar-merge-with leiningen plugin to merge the file with the Togglz servlet configuration with the web.xml file autogenerated by leiningen. However, this was not sufficient to activate the admin console. I could not find much information on how to integrate a servlet from an external library into a Ring application. What would be the best way to do it?

1

There are 1 best solutions below

0
On

I have not tried it myself, but the lein-servlet library seems to promise to do exactly that