Planet OSGi

This year marks the third Eclipse Testing Day, where the community gathers for a day focusing on testing with, for and at Eclipse. The event takes place on September 05 in Darmstadt. The general theme for this year's testing day is "Testing and Beyond". Topics of interest include: Testing Eclipse applications Testing within the Eclipse Ecosystem Testing on Eclipse Projects Design for testability in Eclipse Case studies of testing projects Eclipse tooling...

Read More

In a recent blog post Peter Kriens commented that the OSGi service model is as important as object-orientation. I feel the same - I don't want to write software without this concept anymore. But for me, the service model only makes sense when it's used together with the modularity OSGi provides. I think the modularisation layer is the greatest advantage of the OSGi platform and...

Read More

Update 2: The new interfaces have been renamed again in RAP 1.5M7. Please refer to this post for the details and check out the updated code example. Update: APIs have changed a bit meanwhile, so I updated the code below accordingly. Entry points are now registered by path, and JEE_COMPLATIBILTIY has become the default mode, which makes the main loop obsolete in this kind of applications. RAP...

Read More

In this blog post I describe how to set up a cluster node with an embedded Jetty Server inside Equinox. Basically I followed the instructions available at the Jetty Wiki page Session Clustering Using a Database [1]. There are two Jetty configuration files involved: /etc/jetty.xml defining a JDBCSessionIdManager /WEB-INF/jetty-web.xml defining a JDBCSessionManager The main jetty.xml resides in the folder etc of the jetty.home.bundle which itself is a fragment of org.eclipse.jetty.osgi.boot....

Read More

In my last blog post I introduced the idea of using OSGi services for single sourcing a RAP/RCP application. I think this approach is quite elegant, but it has one major drawback. When you use normal OSGi services in your application you will mix your application code with the OSGi Framework code everytime you reference or register a service. Not only does this look ugly,...

Read More

Probably one of RAP’s best known features is its single-sourcing capabilities. Some time ago we created a guide on Single-Sourcing RCP and RAP applications. The guide recommended a technique where a facade and fragments were used to invoke the RCP or RAP implementation during runtime. With this post I want to show you how to achieve the same the OSGi way. For single-sourcing a RAP or...

Read More

When most people think about Eclipse they think of a kick-ass IDE. While this is true, Eclipse is so much more.  Did you know that Eclipse hosts a top-notch webserver (Jetty), a framework for building Rich Internet Applications (RAP), a Java persistence solution (EclipseLink) and a foundation for building multi-tier enterprise client / server applications (Riena).  In fact, there is an entire top level Eclipse...

Read More

If you use Eclipse to develop OSGi based applications you may use the OSGi Launcher provided by the PDE Tooling. It's cool tooling because it gives you full control over the OSGi instance to be launched.  You can choose the OSGi framework (e.g. Equinox or Felix), select the bundles to install and much more. But this launcher has one drawback that hurts every time I run...

Read More