Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is it possible to call java servlet from ring/compojure?

I have to call a servlet written in Java from Clojure web application, and I don't understand how to do that.

Developing a webapp in Java, I had to describe all mappings in web.xml. In Compojure, I see, I must describe routes. So, can I bind the Java servlet to one such route?

Sorry if my question is stupid, but I've searched a lot and didn't find an answer; I'm just starting to develop for the web.

like image 344
Lexx Cherry Avatar asked Nov 05 '22 15:11

Lexx Cherry


1 Answers

Two helpful pointers:

There's an example on how to generate the Vaadin servlet completely from Clojure on github

And here's a SO question on how to map a java filter to routes

like image 63
Nicolas Modrzyk Avatar answered Nov 12 '22 17:11

Nicolas Modrzyk