Re: Embedding Clojure/swank into existing Java system

2008-12-03 Thread Anton Vodonosov
Hi Craig, clojure.main/with-bindings was exactly what I needed. With it my JSP became trivial few liner: http://paste.lisp.org/display/71541 Thank you. - Anton --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cloju

Re: Embedding Clojure/swank into existing Java system

2008-12-01 Thread Craig McDaniel
Never mind about my unloaded/reloading servlets comment. Checking for a swank exception as in the original example would work fine. -Craig --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

Re: Embedding Clojure/swank into existing Java system

2008-12-01 Thread Craig McDaniel
Since release 1127, you can now do this instead: $ cat src/mypkg/HelloServlet.clj (ns myapp.HelloServlet (:gen-class :extends javax.servlet.http.HttpServlet) (:import (java.io PrintWriter) (java.util.logging Logger Level)) (:require swank clojure.main)) (defn- -init [this con

Embedding Clojure/swank into existing Java system

2008-11-28 Thread Anton Vodonosov
Hello. I want to embed Clojure into a Java system we are creating at work to have interactive control on it (via SLIME) during development. The system is running in Tomcat. I did not find a conventional to do this. Therefore I copy/pasted peace of clojure.lang.Repl class and created a JSP page,