InfoQ

Interview

Peter Kriens discusses OSGi

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

Community
Architecture,
Java
Topics
Application Servers ,
Embedded Devices ,
Technology ,
JCP Standards ,
Enterprise Architecture
Tags
OSGi ,
JBoss ,
Spring ,
JSR 294 ,
Websphere ,
JSR 291 ,
JSR 277 ,
Eclipse ,
Java EE
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
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.

Educational Content

Bindings, Platforms, and Innovation

This presentation focuses on the Internet and separating myth from fact, history from the future, and the mundane from the imaginative. Bob Frankston presents a vision of what could and should be.

Orchestrating Long Running Activities with JBoss / JBPM

This article explores the use of JBoss and jBPM to implement design solutions that effectively address the issue of orchestrating long running activities.

Neo4j - The Benefits of Graph Databases

This presentation covers the use of graph databases as an optimal solution for data that is difficult to fit in static tables, rapidly evolving data or data that has a lot of optional attributes.

Realistic about Risk: Software development with Real Options

This session introduces Real Options and shows how it can help in running your project. Real Options is a decision-making process that can be used to manage risk.

Communication Flexibility Using Bindings

This article discusses the use of bindings on services and references (including the instance of non-configured bindings) as the means to implement SCA communications in a Web and SOA environment.

Writing DSLs in Groovy

After a short introduction to DSLs, Scott Davis plays with the keyboard showing how to approach the creation of a DSL by typing working snippets of Groovy code that get executed.

Scaling Agile with C/ALM (Collaborative Application Lifecycle Management)

IBM Rational and InfoQ present, Scaling Agile with C/ALM, an eBook showing organizations how to become “finely tuned software delivery machines” by enabling team integration and scaling.

Concurrent Programming with Microsoft F#

Amanda Laucher presents a real life enterprise application written in F#. She shows actual code snippets, explaining design decisions and suggesting how to use some of the F# constructs.