You'll probably want to take a look at my fork of that project,
https://github.com/rmoquin/clojure.osgi. It took me forever to figure out
how to initially use it, and I made a bunch of enhancements to it.
Basically there is an OSGi service you can use to execute something with a
Clojure classloading context ... it works pretty well, though I'm sure
there are some other additions it could use. Clojure stacktraces are
immensly ugly and I found that in 1.4 that when an exception occurs,
sometimes they swallow it (I think there was a comment about some exception
hack they were using) and only print out a generic message that gives no
indication of the error. I'm not sure if the osgi version of the clojure
1.4 lib has a modification or two to deal with it, or if I did something
else. If you look at some of my other code, you can see how to use that
clojure.osgi lib. The single classloader issue in Clojure really burned a
lot of my time trying to deal with running a large amount of clojure code in
Java.
Oh well, hopefully it helps you out.
Ryan
--
View this message in context:
http://karaf.922171.n3.nabble.com/Clojure-and-OSGi-Karaf-tp4028687p4028837.html
Sent from the Karaf - User mailing list archive at Nabble.com.