What is the difference between OSGi Components and Services

“Components” are less formally defined than services. A service is any object that is registered in the OSGi Service Registry and can be looked up using its interface name(s). The only prerequisite is that a service should implement some interface… any interface. For example I could register a runnable object under the java.lang.Runnable interface, and … Read more

Why can’t JAXB find my jaxb.index when running inside Apache Felix?

OK, this took quite some digging, but the answer is not that surprising and not even that complicated: JAXB can’t find jaxb.index, because by default, newInstance(String) uses the current thread’s class loader (as returned by Thread.getContextClassLoader()). This doesn’t work inside Felix, because the OSGi bundles and the framework’s threads have separate class loaders. The solution … Read more

What exactly is Apache Karaf?

TLDR: Apache Karaf is much more ‘batteries-included’. It can also run on any OSGI runtime. Apache Felix (which is an implementation of the OSGi 4.2 framework) Sort of. Apache Karaf can use Apache Felix. Apache Karaf can also use Equinox or another OSGi runtime. By default, the Apache Karaf standard download does come with Apache … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)