Category Archives: OSGi

Posts about OSGi

Eclipse RCP, Java 11, JAXB

With Java 11 several packages have been removed from the JRE itself, like JAXB. This means if you use JAXB in your Java application, you need to add the necessary bundles to your runtime. In an OSGi application this gets … Continue reading

Posted in Dirk Fauth, Eclipse, Java, OSGi | 2 Comments

Inspecting the OSGi runtime – New ways for Eclipse projects

I often get asked how to find and solve issues in an OSGi runtime. Especially with regards to OSGi services. I then always answer that you have two options: Use the Gogo Shellscr:list – lists all DS componentsscr:info <id> – … Continue reading

Posted in Dirk Fauth, Eclipse, Java, OSGi | Comments Off on Inspecting the OSGi runtime – New ways for Eclipse projects

Build REST services with OSGi JAX-RS whiteboard

Some years ago I had a requirement to access the OSGi services inside my Eclipse application via web interface. Back then I used the OSGi HTTP Whiteboard Specification and wrapped a servlet around my service. Of course I wrote a … Continue reading

Posted in Dirk Fauth, Java, OSGi | Tagged , , | Comments Off on Build REST services with OSGi JAX-RS whiteboard

Building a “headless RCP” application with Tycho

Recently I got the request to create a “headless RCP” application from an existing Eclipse project. I was reading several posts on that and saw that a lot of people using the term “headless RCP”. First of all I have … Continue reading

Posted in Dirk Fauth, Eclipse, Java, OSGi | Comments Off on Building a “headless RCP” application with Tycho

POM-less Tycho enhanced

With Tycho 0.24 POM-less Tycho builds were introduced. This Maven extension was a big step forward with regards to build configuration, as plugin, feature and plugin test projects don’t need a dedicated pom.xml file anymore. Therefore there are less pom.xml files … Continue reading

Posted in Dirk Fauth, Eclipse, OSGi | 1 Comment

OSGi Event Admin – Publish & Subscribe

In this blog post I want to write about the publish & subscribe mechanism in OSGi, provided via the OSGi Event Admin Service. Of course I will show this in combination with OSGi Declarative Services, because this is the technology … Continue reading

Posted in Dirk Fauth, Eclipse, Java, OSGi | 2 Comments

Access OSGi Services via web interface

In this blog post I want to share a simple approach to make OSGi services available via web interface. I will show a simple approach that includes the following: Embedding a Jetty  Webserver in an OSGi application Registering a Servlet … Continue reading

Posted in Dirk Fauth, Eclipse, Java, OSGi | 5 Comments

OSGi Declarative Services news in Eclipse Oxygen

With this blog post I want to share my excitement about the OSGi DS related news that are coming with Eclipse Oxygen. I want to use this blog post to inform about the new features and also the changes you … Continue reading

Posted in Dirk Fauth, Eclipse, Java, OSGi | 1 Comment

Control OSGi DS Component Instances via Configuration Admin

While trying to clean up the OSGi services in the Eclipse Platform Runtime I came across the fact that singleton service instances are not always feasible. For example the fact that the localization is done on application level does not work … Continue reading

Posted in Dirk Fauth, Eclipse, Java, OSGi | 1 Comment

Control OSGi DS Component Instances

I recently came across some use cases where a more fine grained control is needed for component instance creation. I spent some time in investigating how this is done with OSGi Declarative Services in detail. It turned out that it … Continue reading

Posted in Dirk Fauth, Eclipse, Java, OSGi | 2 Comments