Working with Immutant - reusing infrastructure
Immutant is not your usual Clojure web framework. Immutant allows you to build into existing and robust middleware, WildFly, aka JBoss, and deploy your software in an elegant fashion. In this recipe, you will see how to enhance your ring application with the wide range of services available through the Immutant framework.
While Immutant makes it easy to deploy to WildFly, the development environment is entirely contained and can be done without extra download or installation. Let's have a look!
Getting ready
This first section will probably be totally disappointing; at this stage, we are fully in the domain of Clojure and things work out of the box. Terrible, huh?
Here is the project.clj
file, with the full list of libraries required:
(defproject mutant1 "0.1.0-SNAPSHOT" :dependencies [ [org.clojure/clojure "1.8.0"] [org.immutant/immutant "2.1.4"] [ring/ring-devel "1.5.0"]])
ring-devel
is added to the mix to allow for development...