OSGi (#5) + JCR (#4) = Sling

January 31, 2008

Carlos Perez puts OSGI and JCR number 5 and 4 in his list of top Java-based technologies to learn in 2008.

While I’m not a big fan of “top five” lists (except in High Fidelity), I can’t help but note that Sling will help you grasp both #5 and #4, in a gentle way. See you there!


Last call for ApacheCon EU 08 papers!

October 26, 2007

apachecon-logo.pngThe deadline is today and the URL is http://www.eu.apachecon.com/.

I’m submitting a talk on microsling (together with my colleague Felix from the Felix project), my usual XSLT stuff (mostly a rerun), something new on Open Source collaboration tools, and a tentative OSGi services made easy talk to demonstrate the cool Maven plugins provided by Apache Felix.

Update: the deadline has been extended to November 2nd.


microsling – Yet Another (cool) Web Applications Framework

October 12, 2007

sling-logo.pngFrom the new and improved department: I spent part of this week writing a “reduced to the max” version of the Sling core that I’ve called microsling.

That’s been a lot of fun of course, and I think the results are fairly impressive in terms of power per line of code, thanks to the power of the JCR API. Using “modern” Java, with scripting in the right places, helps a lot as well, but that’s nothing new.

In its current state, microsling allows you to use SlingServlets to process HTTP requests in a RESTful way, acting on abstract Resources and using “pluggable” request processing scripts in various languages.

A few useful SlingServlets are provided to create content and to render it using either Velocity templates or server-side javascript.

All this in less than 1’200 lines of Java code, all inclusive.

I’m not sure yet if microsling matches the complete vision of the Sling request processing, but this is already powerful stuff – and very simple to use.

See SLING-47 and the sling-dev list for more info. The microsling homepage is attached to SLING-47 and contains an overview of the request processing mechanism, including links to the source code for a quick walkthrough.

Or get the code straight from the Sling whiteboard if you want to play with it. Fifteen minutes should be enough to build and run it if you have a JDK 1.5, Maven 2.0.7 and a WebDAV client.

The full Sling codebase can be overwhelming to start with, as there are lots of (useful) stuff in there: OSGi helpers and management console, a JSP compiler, JCR utilities, etc. This is an attempt to demonstrate the core Sling principles in a much simpler way, by getting rid of all the ancillary stuff (which deserves to be better organized in Sling, but that’s another story).

Let’s hope the current API redesign and the microsling effort help us communicate more clearly the Sling vision to the JCR community, in order to give it the audience that it deserves!

Update: the code has been moving around since I wrote this (and deleted from Sling’s svn as we incorporated its ideas into Sling later), to get it you need an svn client now:
svn export -r 584116 http://svn.apache.org/repos/asf/incubator/sling/whiteboard/microsling@584116

Update: if you’re really nostalgic, microsling is back at https://svn.apache.org/repos/asf/sling/whiteboard/microsling/


French OSGI user group meeting, Paris, October 10th

July 30, 2005

Didier Donsez sent me a note about this meeting, details can be found here.

The agenda mostly talks about administrative stuff, so it’s not going to be exciting technical or strategy discussions I guess. But it’s still good to know that such a group exists.


Oscar OSGI at the ASF?

July 21, 2005

A recent proposal was made to bring the Oscar implementation of the OSGI framework to the ASF incubator.

Given our recent experiments with OSGI, the timing couldn’t be better!