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
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
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
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
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
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…
RAP/RWT-OSGi Integration III
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
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
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…