InfoQ

Interview

Peter Kriens discusses OSGi

Interview with Peter Kriens on Sep 25, 2007

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

Brian Marick on 4 Challenges and 5 Guiding Values of Agile Software Development

Brian Marick takes us through a quick tour of the most important values and challenges to adopting Agile successfully (they aren't the typical challenges and values we hear in the community).

Are You a Software Architect?

The line between development and architecture is tricky. Does it exist at all? Is an ivory tower actually needed? There's a balance in the middle, but how do you move from developer to architect?

Agile – A Way of Life and Pragmatic Use of Authority

The word 'authority' sometimes produces an allergic response in hard-line agilists. Freedom and authority – both are bad if misused and both are good if used in right spirit for a noble cause.

Getting Started with Grails, Second Edition

"Getting Started with Grails" brings you up to speed on this modern web framework. Companies as varied as LinkedIn, Wired, and Taco Bell are all using Grails. Are you ready to get started as well?

Using ITIL V3 as a Foundation for SOA Governance

Those familiar with only ITIL V2 often scoff at the thought that ITIL could serve as a governance framework for SOA. With ITIL V3, the focus of the framework shifted towards service-orientation.

Adrian Colyer on AspectJ, tc Server and dm Server

SpringSource CTO Adrian Colyer discusses AspectJ, SpringSource's dm Server and tc Server products, OSGi and Scrum.

Adam Wiggins on Heroku

Heroku's Adam Wiggins talks about Rails, Background Jobs, Add-Ons, Ruby, and how Heroku manages to work around Ruby's inefficiencies using Erlang and other languages.

SOA as an Architectural Pattern: Best Practices in Software Architecture

For Grady Booch the foundation of a good architecture is patterns, SOA being just one of many patterns. In this Second Life presentation, Booch attempts to bring more clarity on what architecture is.