Re: Clojure and OSGi/Karaf

2013-05-26 Thread rkmoquin
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.


Re: Clojure and OSGi/Karaf

2013-05-14 Thread Achim Nierbeck
Hi,

no never used it but if clojure works in plain osgi or in a Pax Exam
test, it'll work in Karaf also. :-)
Some easy googling for clojure and osgi brought me to this
https://github.com/aav/clojure.osgi
it might help.

regards, Achim


2013/5/14 Mark Derricutt m...@talios.com

 Is anyone out there in Karaf land currently doing anything with Clojure
 and OSGi based systems?

 If so - whats your setup? How are you dealing with services/components?

 Cheers,
 Mark




-- 

Apache Karaf http://karaf.apache.org/ Committer  PMC
OPS4J Pax Web http://wiki.ops4j.org/display/paxweb/Pax+Web/ Committer 
Project Lead
OPS4J Pax for Vaadin http://team.ops4j.org/wiki/display/PAXVAADIN/Home
Commiter  Project Lead
blog http://notizblog.nierbeck.de/


Clojure and OSGi/Karaf

2013-05-13 Thread Mark Derricutt
Is anyone out there in Karaf land currently doing anything with Clojure 
and OSGi based systems?


If so - whats your setup? How are you dealing with services/components?

Cheers,
Mark