|
|
||
Sahoo's BlogGlassFish V3 on OSGi - Part IPosted by ss141213 on April 15, 2008 at 07:56 PM | Comments (0)I guess by now you have heard the big news coming out of GlassFish community. We have put back initial code that enables GlassFish to run on an *OSGi* R4 platform. Felix is currently our default OSGi runtime. I am assuming you have either read Jerome's blog or Eduardo's posting in The Aquarium. If you have not, I suggest you read them first. Jerome and Eduardo have explained some of the rational behind this change and what to expect in coming days. Now some details not covered there: The following picture tries to give an idea as to how the runtime looks like when GlassFish is running on an OSGi platform:
All our GlassFish modules including the Java EE APIs are packaged as OSGi bundles. Some of you may wonder what's HK2's role here. HK2 has following layers, viz: We have implemented HK2' module layer APIs on OSGi by delegating to OSGi module layer. HK2's component layer and config layer relies on HK2's module APIs. Once those APIs are available, it is not that difficult to make those two layers available as OSGi bundles. Except for cases like URLStreamHandler registration, GlassFish modules do not use OSGi APIs directly; they use HK2 module APIs which are available on both the runtimes. That allows them to run unchanged on both the runtimes. Some other day, I shall talk about the service mapper. Last, but not the least, I want to thank Felix community for the excellent support that they provide in their forum. It's not just the framework that I found easy to use. Their maven-bundle-plugin, which wraps Peter Krien's bnd tool, makes life of maven users so much easier. Now, before you ask me, let me preempt you: Why did we take this approach? What are the benefits of this approach? What are the drawbacks of this approach? Will we continue to support both the modes? How does GlassFish use bundle repository? What other OSGi implementation does it run on? What's next? Bookmark blog post: CommentsComments are listed in date ascending order (oldest first) | Post Comment | ||
|
|