OSGi Service Test Helper: ServiceRegistrationRule

On February 11, 2015, Posted by , In JUnit,OSGi, By ,,, , With Comments Off on OSGi Service Test Helper: ServiceRegistrationRule

OSGi Service Tests can be an efficient means to avoid problems related to dangling service references. As promised in my post about writing simple service contribution verifications, this time I introduce a JUnit rule that assists in testing interactions between components. OSGi Service Tests for Component Interaction Assume we have…

OSGi Service Test Helper: ServiceCollector

On February 5, 2015, Posted by , In JUnit,OSGi, By ,,, , With Comments Off on OSGi Service Test Helper: ServiceCollector

OSGi services come in handy for the development of systems based on loosely coupled components. But loose coupling can make it difficult to recognize problems related to dangling service references. Thus we usually run integrations tests to ensure the availability of service components at runtime. With the intention to reduce…

Apache FOP Integration with Eclipse and OSGi

On January 20, 2015, Posted by , In Eclipse,OSGi, By ,,, , With 2 Comments

Apache FOP is an open source print processor driven by XSL formatting objects (XSL-FO). It can be quite useful to transform data objects into a PDF for example. However it turned out to be somewhat cumbersome to get it integrated into PDE and finally up and running as OSGi Service….

OSGi Testsuite: Introducing Classname Filters

On November 12, 2014, Posted by , In Eclipse,JUnit,OSGi, By ,, , With 4 Comments

OSGi Testsuite is a JUnit test-runner that collects dynamically test classes for execution. It has been published by my fellow Rüdiger about a year ago and proven useful in some projects already. However for gonsole we had to use an ugly patch because version 1.0 only supported .*Test postfix matching…

Configure Your OSGi Services with Apache Felix File Install

On October 25, 2013, Posted by , In Eclipse,OSGi, By , With Comments Off on Configure Your OSGi Services with Apache Felix File Install

A recent post about Managed Services reminded me of a feature in Apache Felix File Install that I found worth mentioning. While working on a project with Holger, I learned from him that File Install cannot only be used to manage bundles. It also monitors configuration files and updates Managed…

An Automated OSGi Test Runner

On July 4, 2013, Posted by , In Eclipse,JUnit,OSGi, By ,, , With 2 Comments

Among my fellow team members, I was known for notoriously forgetting to maintain the (JUnit) test suite. I just can’t get this extra step of manually adding a test to a suite into my fingers. Fortunately, there are continuous integration servers that collect tests by a naming pattern. If one…

Running HTTP/REST Integration Tests efficiently in Eclipse

On September 10, 2012, Posted by , In Eclipse,JUnit, By ,,,,, , With 8 Comments

Lately I had a chance to use the OSGi-JAX-RS-Connector library written by my dear fellow Holger Staudacher. The connector enables you to publish resources easily by registering @Path annotated types as OSGi services – which actually works quite nicely. While it is natural for me to write the service classes…

EclipseCon Europe — RAP Talk On-Line

On November 18, 2011, Posted by , In Eclipse, By ,,,,, , With 2 Comments

The last weeks were very exciting since I could talk about the new RAP OSGi integration feature (see I, II, III) on various occasions. It was amazing to see how the RAP community has evolved over the last years. While in the early days you always had to do the…

RAP/RWT-OSGi Integration III

On October 13, 2011, Posted by , In Eclipse,OSGi, By ,,,,, , With 1 Comment

The previous posts 1 about the new RWT-OSGi integration bundle of RAP 1.5 concentrated on the various possibilities of how to run RWT as Web-UI-Toolkit in OSGi environment. In this post I will discuss some ideas of how to use RWT and OSGi to build dynamic web applications. To do…

RAP/RWT-OSGi Integration II

On October 5, 2011, Posted by , In Eclipse,OSGi, By ,,,, , With 1 Comment

In my last post about the new RWT-OSGi integration bundle of RAP 1.5 I have promised to provide a little example of how to use RWT in combination with the ConfigurationAdmin service of OSGi. In this post I will keep that promise and show how to register RWT applications arbitrarily at…

RAP/RWT-OSGi Integration

On August 26, 2011, Posted by , In Eclipse,OSGi, By ,,,, , With 8 Comments

Motivation During my time as RAP technology lead I took care of some consulting projects using RAP/RCP in single sourcing fashion. Although this approach has proven very powerful to help people to bring their RCP applications to the web, I consider the workbench concept often too cumbersome if you are…