BT
x Your opinion matters! Please fill in the InfoQ Survey about your reading habits!

Spring and OSGi - A Perfect Match?

by Scott Delap on Sep 14, 2006 |
The Spring Framework has become a favorite of enterprise application developers in recent years. The OSGi specification and various Java implementations has also been growning in popularity. Work has recently begun to combine the power of these two complementary frameworks with a specification supported by BEA, Oracle, IBM, Eclipse, the OSGi Alliance.

The goal of Spring’s OSGi support is to make it as easy as possible to write Spring applications that can be deployed in an OSGi execution environment, and that can take advantage of the services offered by the OSGi framework. Spring’s OSGi support also makes development of OSGi applications simpler and more productive by building on the ease-of-use and power of the Spring Framework.

Among the benefits envisioned:

  • Better separation of application logic into modules
  • The ability to deploy multiple versions of a module concurrently
  • The ability to dynamically discover and use services provided by other modules in the system
  • The ability to dynamically deploy, update and undeploy modules in a running system
  • Use of the Spring Framework to instantiate, configure, assemble, and decorate components within and across modules.
  • A simple and familiar programming model for enterprise developers to exploit the features of the OSGi

An implmentation is targeted to have an initial release in Spring 2.1. Martin Lippert and Gerd Wutherich have sandbox Spring OSGi code running inside a web application using the servlet container embeddable equinox support created by the server-side equinox incubator project. Initial support will be for the Eclipse Equinox project and then expanded to other OSGi providers if possible.

 

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

upgrade framework by karan malhi

This reminds me of the discussion on upgrade framework on InfoQ www.infoq.com/news/upgrade-frameworks

An application running in an OSGi execution environment will be easier to upgrade as you could upgrade module by module and always revert back to the previous version in case of issues.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

1 Discuss

Educational Content

General Feedback
Bugs
Advertising
Editorial
InfoQ.com and all content copyright © 2006-2014 C4Media Inc. InfoQ.com hosted at Contegix, the best ISP we've ever worked with.
Privacy policy
BT