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:

Using several technologies, I’ve recently created a Twitter user status service…i.e. a web service that retrieves the latest user status for a given user.

Read the complete article here.

osgi, tutorial

Apache CXF: OSGi remote service implementation

Last week the Apache CXF implementation of the OSGi Remote Service specification, CXF-DOSGi version 1.1 was released.The CXF-DOSGi code base has already been supporting the OSGi Remote Service spec (chapter 13 in the OSGi 4.2 Compendium Specification) for some time. Now it’s in a released version as well.

Read the complete article on David Bosschaert’s blog.

dosgi, osgi

OSGi testing with PaxExam

conference, osgi, pax

Spring Dynamic Modules: OSGi meets the Spring Framework

Brief presentation about OSGi and Spring Dynamic Modules I presented last week at the Spring Framework Italian User Group in Cagliari, Sardinia.

conference, osgi, spring

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 limited, there are many applications using it (we already mentioned the Apache Felix Web Console).

The OSGi HTTP Service provides a simple OSGi service to deploy servlets and resources at runtime; in this article I’ll focus on the first part, implementing and deploying a simple Servlet.
Read the rest of this entry »

osgi, tutorial

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.

osgi, tutorial

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.

knopflerfish http console

Let’s take it for a test drive.
Read the rest of this entry »

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 you the opportunity to try bundles and OSGi applications in less than 2 minutes, just running a one-line command.
Give it a try!

Finally, if you know any interesting (and open source) OSGi application/demo that you can run with a Pax-Runner file, just send it to me and I’ll publish it.

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 on Windows?). That’s the reason the Java Preference API was designed.

OSGi of course is not immune to that problem; an OSGi bundle may run in any device supporting a R4 OSGi container, and therefore needs a well defined and portable mechanism to store application and user settings. That’s the business of the OSGi Preferences Service.

In this article I’m going to show how you can use the Preferences Service in your OSGi applications.
Read the rest of this entry »

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 property files and send them to the OSGi ConfigurationAdmin service; that’s very useful if you want to be able to configure your applications just creating/deleting and updating properties file at runtime. In this post I’ll enhance the project presented in the previous article to include this new functionality.

Read the rest of this entry »

osgi, tutorial