Why an OSGi Zone?

Until a few months ago, I had heard about OSGi but I didn't care. For me it was just some obscure standard Eclipse was running on and since I don't like Eclipse, I didn't like OSGi either. So much that when the topic was mentioned on Apache Cocoon mailing lists a few years ago, I really didn't see the point. And about all those so-called OSGi implementations like Apache Felix, Knopflerfish, Equinox and others, I thought "hey, some geeks need to have fun". It was all until a magic day in last december.

That's when Peter Kriens, OSGi evengelist did a great presentation of the potential of OSGi on the server-side at Javapolis. At that time, I was thinking about the architecture of an online collaboration suite I'm working on, complaining about the fact that it missed something: modules. And I was fed up with the classpath system because of the way Maven manages dependencies transitively: I constantly have several versions of the same dependency in my classpath, and it forces me to do some manual tinkering on my POMs. And then this guy talks about a technology that can handle dependencies at runtime, start, stop, move modules and resolve services and packages dynamically. That's what you can call a "AHA moment".

Since then, I've read the whole Spring Dynamic Modules reference documentation (high quality like always), I've looked at Apache Felix, BEA's dev2dev introduction and the work under way on JonAS... and I've been quite frustrated. Because OSGi just misses one thing to realize its full potential on the server-side. It needs to get rid of all this J2EE crap like WAR and EAR files, it needs a deployment platform, an application server running OSGi. Of course there is JonAS but it is not exactly a mainstream server. And there is the new BEA platform, and Websphere. But let's be honnest, what I'm really waiting for is Tomcat OSGi support. And since the jury is still out about the final specifications the Enterprise Expert Group is working on, there are a lot of things in the pipeline.

Well, the way I see it, this zone can be the central place where the community can track all those ongoing efforts. And thanks to the tools offered by DZone, we can share our thoughts and comments, spread the word, gather documentation and links. I'm convinced it's going to be huge, at least equivalent to what Spring brought to Enterprise Java a few years back, and I'm glad they are part of it now.

So welcome the the OSGi Zone, and enjoy!

PS: We're looking for Zone Leaders. Feel free to contact me or Rick if you're interested.

Average: 4 (2 votes)

Comments

Ian Skerrett replied on Fri, 2008/02/08 - 9:34am

This is a great idea; even though you don’t like Eclipse :-)

btw, there were two other articles about OSGI that I thought were interesting: 1) Universal Middleware: What’s Happening With OSGi and Why You Should Care and 2) Stackless Stack and the rise of OSGi;

 

Ian Skerrett

ianskerrett.wordpress.com

 

Mostly Harmless replied on Fri, 2008/02/08 - 9:48am

>> For me it was just some obscure standard Eclipse was running
>> on and since I don't like Eclipse, I didn't like OSGi either.

Thats funny. Those were my thoughts at first too.

Ian Bull replied on Fri, 2008/02/08 - 11:20am

While there may be no Tomcat for OSGi, there is a Jetty bundle which works really well! I use OSGi / Jetty and GWT for pretty cool websever stack!.

Denis Baranov replied on Fri, 2008/02/08 - 5:25pm

Am I getting this wrong, or is it really that you want this turned inside out? You want Tomcat to be an OSGi container rather than a module that could be used in OSGi container? Could somebody explain which is right/wrong/sensible?

Sebastien Arbogast replied on Fri, 2008/02/08 - 6:25pm

The bottom line is I need a platform that I can start up on my server machine and where I can deploy bundles exposing servlets, webservices and so on.

Now what's for sure is that this OSGi stuff really changes the way we are used to think about application servers. For example, Apache Felix comes both as a standalone app or as a module that you can embed in an existing server.

And what I really expect SpringSource, Covalent and Tomcat to do, is to coordinate with OSGi enterprise expert group to define "the new way to think about java application servers". A bit like what JonAS has already done, but with some documentation ! 

Rainer Eschen replied on Sat, 2008/02/09 - 3:30am in response to: sarbogast

I had a short look at one of the first pre-releases of Spring Modules some month ago. At that time it was not possible to modularize a Web application. I'm searching for a solution to create reusable parts inside a WAR file, so that JSF pages plus their backing beans are pluggable. Did you heard of any development in this area? 

Springsteam Blog - Next Generation Java Development

Ian Skerrett replied on Mon, 2008/02/11 - 11:36am

btw, I might also add that if people are interested in learning more about OSGi, OSGi DevCon is being held in conjunction with EclipseCon, on March 17-20 in Santa Clara.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.