InfoQ

Interview

   Good News: We have re-worked our video infrastructure to provide more reliable service. Please email bugs at infoq.com with any problems.

Peter Kriens discusses OSGi

Interview with Peter Kriens on Sep 25, 2007 12:00 PM

Community
Architecture,
Java
Topics
Technology,
Embedded Devices,
Enterprise Architecture,
Application Servers,
JCP Standards
Tags
Websphere,
Spring,
Java EE,
JSR 294,
JBoss,
OSGi,
JSR 277,
JSR 291,
Eclipse
Summary
InfoQ recently sat down with Peter Kriens of the OSGi Alliance to learn more about OSGi. Kriens discussed OSGi's origins in the mobile space, it's integration with Eclipse, the current integration work with Spring, and the future R5 specification. He also discussed the ongoing debate over OSGi and JSR 277, and gave his perspective on what an ideal solution would be for modularity at the JVM level.

Bio
Peter Kriens is currently the OSGi Director of Technology. He has worked extensively for major companies like Intel, Ericsson, Motorola, Adobe, IBM, and Nokia. In 1998 he started working with the precursor to the OSGi Alliance. He has been heavily involved in all major releases of the OSGi specifications. He currently manages the OSGi technical work and gives workshops as the OSGi evangelist.
I am here with Peter Kriens. Peter, could you tell us a little bit about yourself?
Could you maybe elaborate on how you think we got here with OSGi? Where it started, how it ended up making this jump into the Java enterprise and desktop space from the embedded space?
Moving from a high level to a lower level, for some of the architects out there, how does OSGi plug into the existing JRE to provide everything you just described
There's been a lot of announcements from the BEAs and the IBMs and the JBosses of the world, that they are moving their server infrastructure to be largely driven by OSGi. Why do you think that is happening in the market place?
We’ve talked about home automation, enterprise JEE servers and web applications. I think that architects look at this and think “how do I define this, where do I use it at?”, because we think about e.g. persistence layers being used at the server level. But OSGi is interesting - like a JAR file, it can be applied at a client level, at a server level, on a phone, as a backend for a WAR file… Can you elaborate on some of the choices you’d use about where to apply it at? Or is it universally applicable?
OSGi is an active specification still. What still needs to be added and what is being added in the upcoming releases to the experience for developers in terms of security and other needs that haven't been addressed in the earlier versions?
The OSGi Alliance is not the only organization trying to solve these sorts of problems. There’s a couple of similar efforts right now through the Java Community Process (JCP), such as JSR 277 and 294, but they are not slated until Java 7 to come out whereas OSGi runs now. There’s been a lot of cross-talk asking why are we reinventing the wheel and what this adds - what are your thoughts on that?
There is also an effort from the OSGi Alliance, JSR 291, which seems to be injecting OSGi into the JCP process. Some have commented that we don’t need to use the JCP to rubber stamp an existing standard. What benefits does JSR 291 provide for both the OSGi Alliance and the JCP?
You mentioned bringing OSGi more into the Java family. Another interesting thing that has happened in the last year, is the adoption of OSGi by Interface21 with Spring. Spring currently supports dependency injection and things of that nature, but seems to have intentionally stayed away from this concept of modularity. So bringing these two frameworks together is a good fit, because Spring’s benefits are integrated with the functionality that OSGi provides. Could you elaborate on what types of synergies you think are going to come out of that?
What's the timeline of completing the marriage between Spring and OSGi? It's flagged as experimental right now and what's the expectations in terms of this year, next year, in terms of having this as part of Spring core/OSGi for R5?
If you read the OSGi documentation, there’s explicit phrasing that says “a Java-based specification”. However it seems that the features provided with OSGi can also benefit other languages and other platforms like .Net for instance. Has there been any consideration into making OSGi a broader specification for other languages?
I think that architects are trying to decide is where to put OSGi. Does it go at the bottom as part of a core infrastructure that’s running my entire server, or does it go more to top, e.g. on a mobile phone or in a WAR file? What are some of the thought processes in making that decision?
We’ve talked about how OSGi started in home automation and cell phones, and the tipping point that happened with the Eclipse Foundation making OSGi the base of the Eclipse IDE which introduced it to a lot of the Java community. Could you talk about how that transition happened and what came out of it?
What are the other main areas that OSGi is used outside of the enterprise space?
show all  show all

1 comment

Reply

the splendent future of JAVA by jw yang Posted Sep 27, 2007 10:58 PM
  1. Back to top

    the splendent future of JAVA

    Sep 27, 2007 10:58 PM by jw yang

    I have notices on SOA's implementation such as SCA,JBI,ESB,etc,but now OSGI excites me.

Exclusive Content

Tapestry for Nonbelievers

A new article by I. Drobiazko and R. Zubairov introduces v. 5 of the Apache Tapestry component-oriented web framework. The tutorial shows how to create a component and covers IoC in Tapestry and Ajax.

Pete Lacey on REST and Web Services

In this interview, Burton Group consultant Pete Lacey talks to Stefan Tilkov about his disillusionment with SOAP, his opinion on REST, and addresses some of the perceived shortcomings REST vs. WS-*.

Business Natural Languages Development in Ruby

Jay Fields presents his concept of Business Natural Languages - a type of Domain Specific Languages geared towards being readable by domain experts.

Distributed Version Control Systems: A Not-So-Quick Guide Through

Adoption and interest for Distributed Version Control Systems is constantly rising. We will introduce the concept of DVCS and have a look at 3 actors in the area: git, Mercurial and Bazaar.

Segundo Velasquez and Agile as Seen Through the Customer's Eyes

Deborah Hartmann interviewed Segundo Velasquez about his experience as customer with an Agile team during the initial phase of software design of a product.

Fine Grained Versioning with ClickOnce

David Cooksey shows how to fine grained versioning to a ClickOnce deployment using an HttpHandler written with ASP.NET, making partial rollouts to a test audience much easier.

Implementing Manual Activities in Windows Workflow

Windows workflow (WF) is an excellent framework for implementing business processes, but lacks support for human activities. This article describes a completely generic approach for changing this.

Markus Voelter about Software Architecture Documentation

In this interview taken during OOPSLA 2007, Markus Voelter talks about the importance of documenting the software architecture, and gives some good and also bad examples on how it could be done.