Posts tagged with "Planet OSGi"

Feb 4th, 2014

Step by Step: How to bring JAX-RS and OSGi together

014-run-in-browser

Most of the server-side Java systems I built over the last years had the following requirements: They should be modular to be highly extendable and of course they should have a REST API to lower the integration barrier for other systems. If you have similar requirements you probably choose two standards/technologies. For the modular part [...]

6 Comments
Oct 1st, 2013

OSGi JAX-RS Connector 3.1 released

connector

Earlier this year in June we released the 3.0 version of the OSGi JAX-RS Connector together with JAX-RS 2.0. Since then a lot has happened in the project and we decided to do a 3.1 release. Below are the important features and changes that made it into 3.0 and 3.1. If you’re not familiar with [...]

4 Comments
Aug 5th, 2013

Control Your OSGi Application at Runtime

engine_order_telegraph

It is a common procedure to read the initial configuration of a classic Java program from a file system properties file. Once the program is up and running, changes made to the configuration will be ignored unless you deliberately watch for changes to the properties file. OSGi runtimes provide a ConfigurationAdmin[1] to manage your initial [...]

1 Comment
Feb 21st, 2013

API Tools revisited

image01

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 [...]

1 Comment
Jan 23rd, 2013

How to track lifecycle changes of OSGi bundles

console-bundlewatcher

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.

4 Comments
Jan 14th, 2013

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, [...]

3 Comments
Nov 28th, 2012

Consuming REST services in OSGi the cool way

consumer

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 [...]

4 Comments
Nov 27th, 2012

Consuming REST services in Java the cool way

overall

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 [...]

3 Comments
Oct 26th, 2012

OSGi-JAX-RS Connector 2.1.0 released

connector

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 [...]

4 Comments