Composing applications with karaf features http://steinar.bang.priv.no/?p=310 #apache_karaf #java_programming #declarative_services #derby #jdbc #karaf #liquibase #osgi #osgi_services #paxjdbc #paxjdbcconfig #postgresql I create web applications by first creating a set of OSGi bundles that form the building blocks of the application, and then use karaf features to pull the building blocks together to create complete applications that run inside apache karaf. The bundles are (in order of initial
Composing applications with karaf features

Steinar Bangs blogg
Simplified REST APIs from karaf using Jersey http://steinar.bang.priv.no/?p=342 #java_programming #maven #apache_karaf #declarative_services #dependency_injection #http_whiteboard #jersey #jsr330 #karaf #karafmavenplugin #mavenbundleplugin #rest_api #web_whiteboard #whiteboard I have written the Java class JerseyServlet which is intended as a base class for DS (Declarative Services) components providing Servlet services to the OSGi web whiteboard. The JerseyServlet simplifies the approach outli
Simplified REST APIs from karaf using Jersey

Steinar Bangs blogg
Simplified delivery of react.js from apache karaf http://steinar.bang.priv.no/?p=332 #apache_karaf #frontend #java_programming #maven #axios #bootstrap #declarative_services #frontend-maven-plugin #karaf #osgi_bundle #react-router #reactjs #redux #redux-saga #web_whiteboard_extender #webpack This article is about a new servlet base class I have created to simplify serving up javascript frontends from the OSGi web whiteboard. This article won’t go into the structure of the files that must be ser
Simplified delivery of react.js from apache karaf

Steinar Bangs blogg
My OSGi story http://steinar.bang.priv.no/?p=306 #apache_karaf #Eclipse #java_programming #declarative_services #eclipse #karaf #osgi #osgi_services OSGi is a Java plugin framework and module system that were initially created for supporting embdedded applications in the automotive industry. OSGi also forms the foundations for the Eclipse IDE plugin model. The plugin model of OSGi consists of components waiting for services and starting and exposing services when all of the dependencies are sat
My OSGi story

Steinar Bangs blogg
Rewriting applications to use pax-jdbc-config and liquibase http://steinar.bang.priv.no/?p=292 #apache_karaf #java_programming #declarative_services #derby #jdbc #karaf #liquibase #osgi #osgi_services #pax-jdbc #pax-jdbc-config #postgresql After creating the post Pluggable databases for apache karaf applications I posted a link to the blog post in the karaf user mailing list, and the immediate response was, “why didn’t I just pax-jdbc-config instead?“. The answer to that is that I didn’t know a
Rewriting applications to use pax-jdbc-config and liquibase

Steinar Bangs blogg
Pluggable databases for apache karaf applications http://steinar.bang.priv.no/?p=265 #apache_karaf #java_programming #declarative_services #derby #jdbc #karaf #liquibase #osgi #osgi_services #pax-jdbc #postgresql Edit: I no longer use this approach. I use pax-jdbc-config instead.  See the article Rewriting applications to use pax-jdbc-config and liquibase for details When creating databases for my apache karaf based web applications, I want the following things: A database-independent schema cr
Pluggable databases for apache karaf applications

Steinar Bangs blogg
Use Jersey to provide REST APIs from karaf applications http://steinar.bang.priv.no/?p=261 #java_programming #maven #apache_karaf #declarative_services #dependency_injection #http_whiteboard #jersey #jsr330 #karaf #rest_api #web_whiteboard #whiteboard Edit: creating a REST API using jersey has been made simpler, see Simplified REST APIs from karaf using Jersey for details. The sample application https://github.com/steinarb/jersey-demo demonstrates how to use Jersey to provide a REST API from a
Use Jersey to provide REST APIs from karaf applications

Steinar Bangs blogg
Deliver react.js from apache karaf http://steinar.bang.priv.no/?p=255 #apache_karaf #frontend #java_programming #maven #axios #bootstrap #declarative_services #frontend-maven-plugin #karaf #osgi_bundle #react-router #react.js #redux #redux-saga #web_whiteboard_extender #webpack Edit: delivering react.js has been made simpler, see Simplified delivery of react.js from apache karaf for details. A small barebones demo application/testbed, delivering a single-page web application from apache karaf,
Deliver react.js from apache karaf

Steinar Bangs blogg
Develop OSGi applications using karaf http://steinar.bang.priv.no/?p=238 #Eclipse #java_programming #maven #apache_karaf #debugging #eclipse_ide #karaf #osgi #software_development Apache Karaf is a good platform for deploying OSGi based applications. Karaf is also a good platform for testing and debugging these applications. This article describes how to test and debug OSGi bundles and OSGi applications with karaf and eclipse. The basic flow of development, is: Build the application with maven
Develop OSGi applications using karaf

Steinar Bangs blogg
Installing apache karaf on debian http://steinar.bang.priv.no/?p=224 #debian #apache_karaf #apache_maven #application_server #apt #apt_archive #aptly #deban_9 #debian_package_archive #debian_stretch #java #karaf #maven #osgi #osgi_container #ssh_server #stretch Until the RFP (Request For Packaging) bug for karaf in the debian bug tracker is resolved, here is an APT archive with a karaf package for debian (architecture “all”).  The package is created using native debian packaging tools, and buil
Installing apache karaf on debian

Steinar Bangs blogg