Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Project combining the messaging and OSGI architectures with Camel, JPA, ServiceMix and ActiveMQ. Projet can be deployed on Fuse ESB 4.3.x release
Latest commit d07820a Charles Moulliard Add missing h2 script.sql file


This example shows different architectures that we can design on ServiceMix 4 platform :
- Messaging using Apache Camel framework
- OSGI Registry with Java Application (Service and DAO layers) to persist information into a DB
- Web using Apache Wicket framework and Spring Dynamic Module to retrieve service fron OSGI registry

More info about this project can be find here

Remark : This example does not longer use Hibernate but OpenJPA

    mvn clean install


    STEP 1 : Open a DOS/UNIX console in the folder persistence/database

    STEP 2 : Download H2 Database ( and install it

    STEP 3 : Start H2 Server using the bat or shell script

    ./ &

    The H2 server is started and to manage the databases from your web browser, simply click on the following url

    STEP 4 : Next create the report database

    In the login.jsp screen, select Generic (H2) - Server
    Add as settings name : Generic H2 (Server) - Webinar
    and modify the JDBC ur las such : jdbc:h2:tcp://localhost/~/reportdb

    Next click on "connect" and the screen to manage the reportdb appears

    STEP 5 : Create Schema and Tables using the script located in the file db/src/main/config/h2-script.sql

    Execute the scripts 1), 2) and 3) defined in this file

    Check that the records are well created using the command : SELECT * FROM REPORT.T_INCIDENT;


    STEP 1 : Download Fuse ESB Server from this repository :
    STEP 2 : Unzip the zip or tar.gz archive
    STEP 3 : Open in a DOS windows or Unix terminal the directory bin
    STEP 4 : Edit the file /etc/org.apache.karaf.features.cfg and add the following features to boot


    STEP 5 : Start ServiceMix servicemix.bat or ./servicemix
    STEP 6 : In the servicemix console, launch the commands to install features of reportincident demo

    features:addUrl mvn:org.fusesource.devoxx.reportincident/features/1.0-SNAPSHOT/xml/features
    features:install reportincident-jpa

    STEP 7 : Check if the project works fine and connect to the following url in your browser


    STEP 8 : Verify of the web site is operational


    STEP 9 : Copy incident file
    cp ~/wks-projects/tutorial-osgi-camel-part2/routing/src/data/csv-one-record.txt /Fuse/servers/apache-servicemix-4.4.1-fuse-01-06-devoxx/data/reportincident/

    STEP 10 : Use SOAPUi client and send this envelope to the server

    SOAP Enveloppe
    <soapenv:Envelope xmlns:soapenv="" xmlns:rep="">
             <summary>Issue at the DevoXX</summary>
             <details>Room is burning !</details>

!!! Enjoy this DevoXX demo !!!

Something went wrong with that request. Please try again.