My Stuff

2010 Conferences

OSGi DevCon @ JAX London

February 23 - Keynote titled OSGi in the Enterprise: Agility, Modularity, and Architecture’s Paradox


March 22 - 25 - Tutorial on Modular Architecture

Über Conf

June 14 - 17 - Sessions titled Turtles and Architecture and Patterns of Modular Architecture


July 26 - 30 - Two sessions on rich mobile applications and one on agile development. Half day tutorial on software process improvement.

Tweets @ Twitter

re: #apple event "We sold more iPads than any PC manufacturer sold of their entire PC line." 2012-09-12

re: #Apple Event ""Our notebooks now rank #1 in the US in Market share in the last three months." 2012-09-12

Right on. I just won a Best Buy drawing worth $1000. Either that or I won a shiny new virus by clicking the link. Hmm...what to do. 2012-08-29

The #osgi alliance response ( to the @mreinhold #jigsaw announcement ( 2012-08-29

Good Q&A with @mreinhold on project #jigsaw. Modularity will change the way we design and run apps! 2012-08-28

LinkedIn Profile

The opinions expressed on this site are my own, and not necessarily those of my employer.

Enterprise OSGi

Filed Under Architecture & Design, Java, OSGi, Platforms |  

For years, OSGi technology has flourished in the embedded systems and networked devices market. Till now, it’s remained a relatively obscure technology for the enterprise developer. Now, in part thanks to Eclipse, OSGi is emerging as a viable and valuable technology in the enterprise.

In 2003, the Eclipse team began looking for ways to make Eclipse a more dynamic Rich Client Platform and increase the platform’s modularity. Eventually, the team settled on the OSGi framework as the run-time component model, codenamed the project Equinox, and in June of 2004 released Eclipse 3.0. This newest version of Eclipse sported a runtime model based on OSGi. OSGi was no longer a technology isolated to use in embedded software and networked devices, but had now become the foundation upon which all Eclipse plug-ins would be developed, and the platform upon which thousands of software developers would use the Eclipse IDE to develop software. Eclipse adoption of OSGi marked a significant milestone for the OSGi Alliance, as adoption by a major product and brand such as Eclipse thrust it into the spotlight for many commercial software companies. Today, several major vendors build on OSGi, and almost all application servers used within the enterprise currently support, or plan to support, OSGi. While OSGi has not yet made significant in-roads to the enterprise, server-side support for OSGi is going to facilitate adoption of OSGi in the enterprise. And this is where it gets interesting for the enterprise Java software developer.

OSGi is a dynamic module system for Java. There is quite a bit of literature discussing OSGi at the OSGi Alliance, specifically the OSGi Technology page. Instead of rehashing what’s already been said, I want to focus on how OSGi is going to influence positive change for the enterprise developer creating server-side software applications.

  • Modular Development - The OSGi framework defines a unit of modularization called a bundle. A bundle is nothing more, and nothing less, than a Java .jar file. A .jar file is a valid OSGi bundle if it contains resources that provide functionality, and a Manifest file containing metadata about the bundle. The resources can be Java classes, html, images, Servlets, and even JSP. The metadata is defined using required and optional key/values pairs. Since all developers are familiar with .jar files, creating a valid OSGi bundle is relatively straightforward. OSGi changes the deployment model for enterprise applications. Traditional thinking is centered around web application development, and teams devote valuable resources to identifying functionality contained within webapps, and inter-webapp communication. With OSGi, you won’t develop traditional web applications. Instead, you’ll develop bundles that are assembled into an application, so your development philosophy turns from application-centric to component-centric. While we’ve been attempting to design modular software for a very long time, OSGi enforces the design of modular software through these bundles and managed dependencies.
  • Managed Dependencies - OSGi accepts reality that the .jar file is the predominant method of reuse and deployment with Java. OSGi treats a .jar as a first class component. The Manifest within an OSGi bundle defines export packages that other bundles can use, as well as import packages used by the bundle. Think of this as public and private access to the packages within a .jar file. With OSGi, you can now truly establish a component’s published interface simply through how classes are allocated to packages, and the packages made visible through export by a bundle. OSGi offers local transparency for it’s bundles, because you don’t need to include .jar files on the run-time classpath. Instead, exported packages within an OSGi bundle can be used by other bundles running on the OSGi platform. Optionally, some OSGi implementations may provide a Security layer that allows access to a bundle if permission has been granted.
  • Component Platform - OSGi is a service platform because it reduces coupling between bundles. Yet viewing OSGi as only a service platform tends to lump it in with all other service (as in SOA) solutions. OSGi is also a true component platform that hits a sweet spot not presently accommodated for in enterprise Java development or SOA. OSGi is not a distributed service technology. Instead, OSGi bundles are deployed and communicate within a single JVM, making inter-bundle communication in-process and lightweight. OSGi bundles are true software components. The OSGi platform contains a framework specification, making it similar to any other specification you’ve worked with in Java, like the Servlet API, JDBC, etc. There will be numerous implementations of the OSGi specification, but your code should only ever refer to the OSGi package structure (org.osgi.*). Additionally, when you compile, you’ll want to compile against the specification, not the specific implementation you choose to use.
  • Versioned Bundles - When exporting and importing packages from other bundles, you can specify a version number. Because bundles can be versioned, you can deploy multiple versions of the same bundle on the OSGi platform without experiencing fatal errors, such as a ClassCastException commonly experienced when the same class definition is deployed multipled times within the same JVM.
  • Dynamic (Re)Deployment - OSGi allows you to deploy bundles individually, without performing a restart. When functionality within a bundle changes, you simply redeploy that bundle to the appropriate OSGi platform, and clients of that bundle automagically discover it through the packages it exports and it’s version. No need to redeploy entire applications. This offers tremendous flexibility if you separate implementation from specification in your application bundles, by allowing you to completely swap implementation without any interruption to other deployed bundles.
  • Environmental Control - Because OSGi is a managed container environment, you have the ability to install, start, stop, update, and uninstall individual bundles.

Let’s take a moment, digest exactly what OSGi entails, and examine what it means for the enterprise developer in the trenches. No longer need we emphasize development and deployment of individual web applications and portals. Instead, we develop enterprise software systems as a composition of software components that can be assembled dynamically to form a complete system. The challenge of inter-application communication is a non-issue, since individual components can expose resources that serve content to the user, and consume behavior exposed by other components. No longer need we redeploy an entire suite of enterprise software systems due to a behavioral change in a single .jar file. Instead, simply update the .jar on the OSGi platform.

Extending the software system to support new processes is as simple as deploying or redeploying only the necessary components, without any interruption to critical processes. An SOA built on web services is also assembled from the same software components by simply building a service protocol layer on top of the appropriate components. It’s possible to assemble a rich client application from the same software components. Additionally, it’s possible to allow separate components within an OSGi container to utilize the behavior of different versions of the same component.

Because component dependencies are explicitly stated, the component structure of the application is well understood. At the very least, this minimzes the risk of change as the ramification of change can be more accurately assessed. Since OSGi bundle collaboration is in-process, granularity of components can be established that allow teams to maximize component reuse without incurring performance degradation due to excessive inter-component collaboration. Overall, OSGi has eliminated many architectural challenges with enterprise software development, and has established more refined techniques for deploying and managing enterprise software.

When you add it all up, OSGi fills an important technology gap between SOA and object-oriented design on the Java platform. For some time, we’ve been able to build flexible and extensible class structures in Java. With technologies such as EJB (primarily Sessions Beans and Message Beans) and web services, we’ve had a service deployment model. But we’ve lacked a robust component model. Today, there are several server-side open source implementations of the OSGi platform, including Server-Side Equinox and Apache Felix, as well as several commercial implementations. The current development release of Spring-OSGi supports building Spring applications that run in an OSGi environment. In typical Spring fashion, Spring managed OSGi bundles eliminate dependencies to OSGi. The Java Open Application Server v. 5 (JOnAS) is designed with an OSGi based architecture. Even Sun is noticing as is evident through the ongoing saga of JSR-291 and JSR-277. And interest in OSGi doesn’t stop there, as a quick Google search reveals.

OSGi is a key technology filling an important void in enterprise software development. While OSGi adoption within the enterprise may be a year or three away, as the platform continues to gain momentum it’s going to offer significant benefits to enterprise software development teams.


25 Responses to “Enterprise OSGi”

  1. Stefane Fermigier on October 24th, 2007 8:41 pm


    have you looked at what we’ve done with OSGi on the Nuxeo Runtime (part of the Nuxeo open source ECM platform)?



    S. Fermigier, CEO, Nuxeo

  2. chanwook on March 29th, 2008 7:41 am

    Hi, very impressive article^^
    thank to your summary!

  3. Simple OSGi Service : Software & Technology on April 17th, 2008 8:55 pm

    [...] are numerous OSGi tutorials, blogs, and samples posted around the web. My OSGi resources page lists some of these, and if you know of other good resources not listed, please let me know. When I [...]

  4. OSGi Post Summary : Software & Technology on February 19th, 2009 8:39 pm

    [...] Enterprise OSGi -The advantages of what OSGi will bring to Enterprise development. We certainly aren’t here yet, but this is the direction things are moving. [...]

  5. Farewell Blog, Hello POMA : Software & Technology on May 7th, 2010 5:20 pm

    [...] architectural benefits of modularity to simple examples that illustrate the benefit. From the beginning to the end, I’ve written about the benefits of modular architecture at a conceptual level, [...]

  6. on January 11th, 2013 10:32 pm

    “Enterprise OSGi : Software & Technology” was in fact a terrific read and thus I actually was indeed truly joyful to discover the blog post.

    Many thanks-Roman

  7. grow 3 inches hair month on April 20th, 2013 3:15 am

    Terrific article! This is the kind of info that are supposed to
    be shared across the net. Shame on Google for now not positioning this
    post upper! Come on over and discuss with my website .
    Thank you =)jump program mac

  8. Margo on June 2nd, 2013 12:47 pm

    Hi, I think your blog might be having browser compatibility issues.
    When I look at your website in Firefox, it looks
    fine but when opening in Internet Explorer, it has some overlapping.
    I just wanted to give you a quick heads up!

    Other then that, very good blog!

  9. dépannage volet roulant orientable pas cher on June 11th, 2013 1:12 am

    continuously i used to read smaller articles which also clear their motive,
    and that is also happening with this piece of writing which I am reading at this place.

  10. A Great SEO Company on June 15th, 2013 7:55 pm

    By weblog commenting & forum posting, they help to increase your
    brand visibility. Search engine marketing, or SEO Sydney,
    allows you to easily gauge the effectiveness of your online campaign
    through detailed reporting and analytics software like Google Analytics.

    Understand that you’ll have many ways of carrying out your SEO.

  11. seo sydney on June 23rd, 2013 12:23 pm

    I have read a few good stuff here. Certainly value

    bookmarking for revisiting. I wonder how a lot

    attempt you place to make any such

    excellent informative website.

  12. HVAC Repair on June 24th, 2013 9:16 pm

    This will help in keeping your home warm by preventing the hot air from escaping through the windows.
    ” flooded homes, clogged bathrooms, overflowing kitchen sinks and even toilet bowls that flush the wrong side. An energy efficient heating system should be part of every home.

  13. Violette on June 25th, 2013 3:13 am

    First off I would like to say excellent blog!
    I had a quick question which I’d like to ask if you do not mind. I was curious to find out how you center yourself and clear your mind prior to writing. I have had a hard time clearing my thoughts in getting my ideas out. I truly do enjoy writing however it just seems like the first 10 to 15 minutes are usually wasted simply just trying to figure out how to begin. Any suggestions or tips? Many thanks!

  14. emergency appliance repairs on July 6th, 2013 5:01 pm

    Hmm is anyone else experiencing problems with the pictures on this blog loading?

    I’m trying to find out if its a problem on my end or if it’s the
    blog. Any feedback would be greatly appreciated.

  15. ladies gym bags on July 25th, 2013 11:53 am

    Hmm is anyone else experiencing problems with the images on this blog loading?

    I’m trying to find out if its a problem on my end or if it’s the
    blog. Any suggestions would be greatly appreciated.

  16. electricite on July 29th, 2013 12:42 am

    Ahaa, its nice dialogue regarding this paragraph at this place at this website, I have read all that, so now me also commenting here.

  17. vitrerie on July 29th, 2013 6:16 pm

    I have read so many content on the topic of the blogger
    lovers but this paragraph is genuinely a nice paragraph, keep it up.

  18. vitrerie on August 8th, 2013 2:17 am

    My brother suggested I may like this web site. He was totally right.
    This put up actually made my day. You cann’t imagine simply how so much time I had spent for this information! Thank you!

  19. referencement google on September 12th, 2013 3:06 am

    Wow, marvelous blog layout! How long have you been blogging for?
    you make blogging look easy. The overall look of your website is great, let alone the content!

  20. facai4 on December 15th, 2013 6:36 am



  21. nike air command on December 31st, 2013 5:50 pm

    nike air command…

    executives are well-satisfied with turning over nonessential enterprise capabilities to outside suppliers. organizations program to step up outsourcing routines in coming years, with about 23 % stating a choice to outsource “a wide range of capabiliti…

  22. air max pas cher france on February 9th, 2014 9:59 pm

    air max pas cher france…

    Enterprise OSGi : Software & Technology…

  23. moving companies Austin TX on July 31st, 2014 4:03 pm

    Very soon this web page will be famous among all blogging and site-building people, due to it’s nice articles

  24. porn on August 16th, 2014 7:46 pm

    Hey There. I found your blog using msn. This is a very well written article.

    I will be sure to bookmark it and come back to read more of
    your useful information. Thanks for the post. I will definitely return.

  25. Mohamed on February 26th, 2015 9:41 am

    Thanks for the article

Leave a Reply