Posts tagged with "Planet OSGi"
API Tools revisited
Defining API’s is crucial to maintaining modularity. OSGi defines the concepts necessary for API definition such as a service concept and package visibility. However, pure OSGi is not enough to really maintain an API and its potential usages. There are several cases in an API definition where it is required to do more than restrict [...]
How to track lifecycle changes of OSGi bundles
This post explains how to track changes in the lifecycle state of OSGi bundles, using two different techniques: an OSGi BundleListener and an Eclipse BundleWatcher.
OSGi JAX-RS Connector 2.2.0 released (JAX-RS 2.0 update)
There’s good news for our OSGi JAX-RS Connector. We’ve added a consumer implementation that gives you the opportunity to reuse your @Path/@Provider interfaces to consume REST services in a generic way. Over the last few weeks I’d used this consumer a lot and decided that it should go into this release of the connector. So, [...]
Consuming REST services in OSGi the cool way
I recently introduced you to the JAX-RS Consumer. If you’ve read that post you might remember that I promised to write about the OSGi integration of the consumer. This is the topic of this short post. As you might know, a while ago I created the OSGI-JAX-RS connector. This connector gives you the opportunity to [...]
Consuming REST services in Java the cool way
When creating a REST API with Java you probably go with JAX-RS . It’s a nice and well thought-out standard. Having the services encapsulated as plain Java objects with some annotations feels good to me. But this is all different when it comes to consuming REST services. During the last month I have searched for [...]
OSGi-JAX-RS Connector 2.1.0 released
Two months ago the OSGi JAX-RS was released in Version 2.0. Today I’m proud to announce Version 2.1. In addition to minor improvements, a new feature was added based on the work of Dirk Lecluse. It’s now possible to register @Provider annotated objects as OSGi services. The @Provider annotation is used to register custom de/serialization. Now [...]
Using Eclipse databinding with Felix
Update: It turned out that there is already a solution to the problem described here. The bundle org.eclipse.equinox.supplement exports the packages needed by equinox.common. This bundle is available from http://download.eclipse.org/equinox/. If you want to run Eclipse databinding, simply inlude this bundle and org.eclipse.equinox.common and you’re set. You can disregard the solution explained below. Thanks Pascal [...]
OSGi JAX-RS Connector 2.0 released
Back in January 2012, I wrote about the release of the OSGi JAX-RS connector in version 1.0. The connector gives you the opportunity to publish resources by registering @Path annotated types as OSGi services. I’m glad to say that the connector is in production use in many projects. It is pretty stable and as a [...]
How to create blueprints for your OSGi building blocks
With OSGi we are able to implement building blocks for modular applications. Dependency injection frameworks support us in writing flexible, testable and clean code. The “Blueprint Container Specification” defines a dependency injection framework to build applications that run in an OSGi framework. The specification was added in version 4.2 to the OSGi compendium Specification[1]. This [...]





