Archive for August, 2009

Test driving the Knopflerfish HTTP Console

Some weeks ago in this blog we saw how to install the Apache Felix Web Console to manage your OSGi framework.
The Felix Web Console is a quite complex and customizable tool, but if you are more looking for a very lightweight alternative, you may want to have a look at the Knopflerfish HTTP Console.

Let’s take [...]

osgi, tutorial

No more excuses with OSGi Demos

As I already explained in my articles on Pax-Runner, installing and setting up bundles and OSGi applications with this tool is really a piece of cake.
Since I use it when I’m writing articles for the OSGi Look, I decided to publish the provisioning files I write in the new OSGi Demos section. That will give [...]

osgi, pax

OSGi Preferences Service by Example

A common question asked by new Java developers is what’s the best solution to store user-specific or application settings. Of course, it is always possible to designate a particular folder (for instance /etc/myapp) in the filesystem to that use, but that often represents a limit for the application portability (what happens if it doesn’t run [...]

osgi, tutorial

Apache Felix File Install part 2: Dynamic Configurations

This article refers to the OSGi Configuration Admin Service. Look at the Configuration Admin Page for more informations.
In the previous article this week I described a simple project structure using the Apache Felix File Install bundle to allow hot deployment of new bundles.
Another interesting feature of the File Install bundle is its ability to load [...]

osgi, tutorial

Manage your OSGi application with Apache Felix File Install

Check also the second article on File Install: Dynamic Configurations
A while ago we introduced in this blog a little interesting bundle called Apache Felix File Install. This bundle has actually gone a long way since then, and now it’s even part of Sun Microsystem open source application server Glassfish.
The reason this simple bundle is quite [...]

osgi, tutorial

Modular Java: a review

Don’t forget to visit OSGi books for more news on available and upcoming books on OSGi

Modular Java: Creating Flexible Applications with OSGi and Spring is one of the first OSGi books hitting the shelves this year, and probably the most practical and simple book on server-side OSGi published so far.
The author (Craig Walls) adopts a [...]

book, osgi

Four articles to get started with OSGi tests

We haven’t had many chance to talk about OSGi testing in this website, but that’s definitely an hot topic, and something we will come back soon with some new tutorials.
In the meantime, here’s a list of four resources on the Web to kick the tires on OSGi testing:

Putting OSGi to the Test with Pax Exam, [...]

osgi, tutorial

A command line client for the Configuration Admin Service

You can find some introductory articles on the OSGi Configuration Admin Service here and here
In our introductory articles on the OSGi Configuration Admin Service, we explained how to programmatically access to the OSGi ConfigurationAdmin interface to send configuration dictionaries to bundles installed in your OSGi framework.
Of course that’s just one possible usage scenario of the [...]

osgi, tutorial

Easy OSGi provisioning with Pax-Runner provisioning files

As Craig reminded me in a comment some days ago, the best way to provision non-trivial OSGi applications with Pax Runner is to write a custom profile or a provisioning file.

In this tutorial we will go through all the steps you need to do in order to write your own provisioning file. First of all, [...]

osgi, pax, tutorial

Factory pattern on steroids: the ManagedServiceFactory

A few months ago we explored the OSGi Configuration Admin Service, and the ManagedService interface in particular, to see how it is possible to create dynamically configurable services with OSGi.
The second important interface exposed by the Configuration Admin Service is the ManagedServiceFactory; as the name suggests, its purpose is to create multiple, dynamically configurable, implementations [...]

osgi, tutorial