sample.osgi.blueprint-cm sample on GitHub

This article accompanies the <a href="https://github.com/WASdev/sample.osgi.blueprint-cm">sample.osgi.blueprint-cm sample</a> on the <a href="https://github.com/WASdev">WASdev GitHub</a>. The sample demonstrates the use of Configuration Admin and custom Blueprint namespace handlers in OSGi applications on the Liberty profile. I <a href="https://developer.ibm.com/wasdev/blog/2014/09/17/new-osgi-applications-custom-blueprint-namespace-handlers-bring-configadmin/">blogged about these capabilities</a> in September 2014 when they were new out in beta. Everything demonstrated in this sample is fully supported in WAS Liberty V8.5.5.6. Continue reading sample.osgi.blueprint-cm sample on GitHub

Filed under: osgi-techs

OSGi Application Console feature – new in the May 2015 Beta

The May 2015 Beta introduces the Liberty OSGi Applications Console. When developing and deploying OSGi Applications it's sometimes necessary to be able to look inside the application to diagnose problems. Maybe your application is not using the OSGi Service you expected it to, or maybe you suspect the package dependencies have resolved in an unexpected way. Without an OSGi Console, understanding what's going on inside the application can be problematic. Continue reading OSGi Application Console feature – new in the May 2015 Beta

Filed under: osgi-techs

Converting Java EE Projects to OSGi Bundle Projects

In case you didn't know, Rational Application Developer (RAD) and WebSphere Developer Tools for Eclipse (WDT) let you take your existing Java EE projects (say a Dynamic Web project, for example) and easily convert them to OSGi bundle projects. This capability has been there since the beginning but recently we took the opportunity to improve on it in RAD and WDT V8.5.1. Continue reading Converting Java EE Projects to OSGi Bundle Projects

Filed under: coding, java-ee, osgi-techs

Getting Started with OSGi Applications: Blueprint Container (Part 3)

A Blueprint Container is a mechanism to simplify this process and remove all of the OSGi specific Java code, replacing it with a simple XML file and using dependency injection in the Java code. Today we'll start using Blueprint by creating a new bundle that imports the service we created last time and registers a second service. We'll then use this new service to print a message containing the date in the Servlet. Continue reading Getting Started with OSGi Applications: Blueprint Container (Part 3)

Filed under: coding, java-ee, osgi-techs

Getting Started with OSGi Applications: Bundle Lifecycle (Part 1)

OSGi Applications that run in an enterprise environment are a great alternative to deploying the traditional EAR file. This series is going to run through an introduction to OSGi Applications for an enterprise developer, if you don’t know why you might want to do this then Ian Robinson has done an excellent explanation of <a href="http://www.youtube.com/watch?v=J2wqOY603-Q&feature=c4-overview&list=UUkzD7uqVyLzlWMDPQC3hzEQ">the advantages of using OSGi Applications</a>. Continue reading Getting Started with OSGi Applications: Bundle Lifecycle (Part 1)

Filed under: coding, java-ee, osgi-techs