Archive for April, 2009

Scala libraries as OSGi bundles

As OSGi purely relies on Java, it is easy and straightforward to enable OSGi for Scala: Just provide the Scala libraries (scala-lang.jar, scala-swing.jar, etc.) as OSGi bundles with suitable bundle manifests. The “official” Scala libraries are not (yet) delivered as OSGi bundles. There is an Eclipse plug-in which is part of the Scala IDE for Eclipse which basically is an OSGi bundle, but it is an all-in-one bundle (assembles scala-*.jar) and - very important - contains a rather special bundle manifest that is not-so-good for general purpose.

Therefore I have created the scala-lang-osgi project which provides OSGi bundles for each Scala library. No changes are made to the libraries themselves but only the necessary manifest headers are added to the MANIFEST.MF file. All OSGi-fied Scala libraries are deployed to the scala-tools.org Maven repository with group id org.scala-lang-osgi using the same artifact id and version as the non-OSGi Scala libraries (e.g. scala-library, scala-swing, etc.). Of course there is also a snapshot repository.

These OSGi-fied Scala libraries are already used in projects that rely on OSGi and Scala, e.g. ScalaModules and BindForge.  If you also go for OSGi on Scala, please give it a try and give me your feedback.

OSGi on Scala slides online

Roman and me just gave a talk about OSGi on Scala at the OSGi Experts Day (there are quite a lot of OSGi Days) at the JAX 09 conference. The audience was a little quiet and there were no questions - I guess they were very hungry and wanted to get out to lunch.

Nevertheless: Get fluent with ScalaModules and forge ahead with BindForge and tell us what you think!

OSGi Service Component Models slides online

Kai and me had a talk about OSGi Service Component Models at the OSGi Special Day at the JAX 09 conference. The place was pretty crowded and a lot of people showed up after the talk. Viva OSGi!

OSGi at JAX

Next week the JAX conference - Germany's leading conference on Java and related stuff - will open the gates. This year it is located in the home town of the famous Mainzelmännchen ;-)

Like at last year's W-JAX there will again be two days fully dedicated to OSGi: The OSGi Special Day (Guess who is responsible for the agenda!) on Wednesday and the OSGi Experts Day on Friday. There you will have the chance to dive into a variety of OSGi related topics and listen to top-experts like Peter Kriens and Richard Hall.

I will also have two sessions: On Wednesday Kai Tödter and me will introduce "Komponentenmodelle für OSGi" and on Friday Roman Roelofsen an me will talk about "OSGi on Scala" (ScalaModules and BindForge).

And if you are interested in Cloud Computing you surely don't want to miss Alexey Aristov's "OSGi on Clouds" on Wednesday.

See you there ...