SMX4 OSGi Deployment

Deploy Apache ODE OSGi bundle and example process (Ping Pong)

Enter smx4 console and run following commands:

features:addUrl mvn:org.apache.ode/ode-jbi-karaf/1.3.6/xml/features
features:install ode
features:install examples-ode-ping-pong

This will install ODE with default settings (OpenJPA DAO, embedded Derby database)

Configuring database

Create SMX4/etc/org.apache.ode.jbi.cfg file with following contents:


#For MySQL

#For Postgres

#For SQLServer

#For Oracle

# Uncomment the following to enable hibernate (this is recommended for production use):

Please note that EXTERNAL database is currently not available in ServiceMix4, because it requires JNDI, which SMX4 doesn't support.

After choosing a particular database, we need to start ODE with required dependencies. There are 2 example features prepared in ode-jbi-karaf features (ode-hib-oracle and ode-hib-sqlserver). So you need to run following command from Karaf console:

features:install ode-hib-oracle

Please note that etc/org.apache.ode.jbi.cfg must be set to the same database (in this case oracle) to load required dependencies properly.


How to make PMAPI work?

You can grab pmapi SA from here Then edit SMX4 etc/ and change from: