OSGI implementation with Apache Karaf

Karaf is lightweight container for OSGI. In karaf, beside OSGI Core, we have other additional feature for support our application, in other words. Karaf is osgi container that ready to used. Not like Felix or Equinox, they are just OSGI core runtime, if you want to used it with integration for example with apache camel or apache cxf, you have to add those feature manually. Here is picture that i take from karaf website

Continue reading OSGI implementation with Apache Karaf

Change CXF based address in OSGI Service

By default, CXF will mapping CXFServlet to /cxf context path. I used Servicemix 4.5 which using CXF 2.7.3 inside. its define static in osgiservlet.xml in cxf-rt-transport-http (FYI, for CXF 2.7.3, they are using transport-http ver. 2.6.3). So, based on default configuration, all our CXF service will result like http://localhost:8181/cxf/myservice, this is not good. because sometimes you want define service itself.

Continue reading Change CXF based address in OSGI Service