tutorial
GWT and OSGi in the Cloud
I hear every day more talks about bringing OSGi applications to the Cloud, and I think that’s a very exciting opportunity (since I will talk about that at the upcoming JaxLondon/OSGi Devcon Europe).
In this article Scott Lewis go even further and showcase a Twitter user status service with GWT, OSGi and Amazon Web services:
[...]
OSGi HTTP Service: Registering Servlets on-the-fly
There’s a lot of talk lately about Web application development in OSGi, and there’s even an ongoing standardization effort (RFC 66) trying to define an OSGi web application model in the upcoming R4.2 release.
However, it is worth noting that the OSGi HTTP Service is one of the oldest compendium services; and that, while simplistic and [...]
Use your build directory as a bundle with Apache Felix
Alin Dreghiciu has posted an interesting and easy tutorial to use a directory as a bundle; that’s of course very useful when developing new bundles. Alin used Pax-URL to do this little trick.
You can find more details on his “Pax My Framework” blog.
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 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 [...]
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 [...]
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 [...]
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, [...]
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 [...]
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, [...]
