Re: Clojure script in the classpath : + Servlet Container Question

2010-06-25 Thread Chas Emerick
Yes, you can load Clojure code from Java and invoke it however you like: RT.var("clojure.core", "require").invoke(Symbol.intern("your.namespace.here")); And now you can use your clojure fns: Var myfn = RT.var("your.namespace.here", "myfn"); myfun.invoke(arg1, arg2, etc); I'd like to have a

Re: Clojure script in the classpath : + Servlet Container Question

2010-06-20 Thread Todd
Is it possible to load up .clj files from the classpath of an arbitrary java app? For example, could you proxy HttpServlet and run your servlet as a .clj from within a servlet container? If not, and you have to gen-class the servlet, could the servlet bootstrap the clojure environment and proce