Category Archives: Java

Building an FTP server Maven plugin from scratch

In this post we design and code a new Maven plugin that fires up a FTP server to aid in integration testing of FTP-bound processes, thus demonstrating the flexibility and power of Maven plugins.

Posted in Computing, Java | Tagged , , , , , , , , , , , , , , | 2 Comments

Templating the OSGi way with Freemarker

After some well-deserved rest the OSGi components on the server series is back with a vengeance and a somewhat independent post. For some background please check the other posts in the series. A common feature of Web applications is the … Continue reading

Posted in Computing, Java | Tagged , , , , , | 1 Comment

Components on the server (6): adding Integration Testing

In this installment of the server-side OSGi series, we add integration testing capabilities to our project. Integration testing goes beyond plain unit testing and checks the interactions between real components. This is in contrast with unit testing, which generally uses … Continue reading

Posted in Computing, Java | Tagged , , , , | Leave a comment

Components on the server (5): better Unit Testing

In this installment of the OSGi series, we add more complete Unit Testing support in the project. We also establish that some behaviour of the Servlet Bridge may not be what we want and then provide a way to customize … Continue reading

Posted in Computing, Java | Tagged , , , , , | 3 Comments

Components on the server (4): adding Tomcat support

In this post, we examine what is needed to deploy OSGi in a regular Servlet Container using the Equinox Servlet Bridge. We also use the Servlet Bridge to deploy our OSGi cache using Tomcat and wrap it up all together … Continue reading

Posted in Computing, Java | Tagged , , , , | Leave a comment

Components on the server (3): adding a HTTP frontend

Welcome to the third instalment of our OSGi ABC tutorial. Please make sure you check both the 1st installment and the 2nd. In this post, we will add another cache provider implementation to the mix as well as provide an … Continue reading

Posted in Computing, Java | Tagged , , , , | Leave a comment

Components on the server (2): creating the first bundles

Hopefully you enjoyed the OSGi journey in its first installment. Though simple and easy to understand, the first example does nothing out of the ordinary. It is far more interesting to start exploiting some of the basic features OSGi gets … Continue reading

Posted in Computing, Java | Tagged , , | Leave a comment

Components on the server: an OSGi mini-project

The best way to start with OSGi on the server side is with a mini-project to help clarify concepts and workout the mechanics. I have chosen a simple idea: build a volatile cache that stores objects. The interface with it … Continue reading

Posted in Computing, Java | Tagged , | 1 Comment

Experiencing server-side OSGi with Equinox

There is currently a lot of buzz about the OSGi java component technology, also server-side. I have been playing -and working- with this interesting technology recently, mainly the Equinox server-side bundles that allow deployment of an OSGi environment in a … Continue reading

Posted in Computing, Java | Tagged , , | 3 Comments