How To Configure A MySQL Database As A Datasource In ServiceMix

Copy the mysql-connector-java-bin.jar in the SERVICEMIX_HOME/lib directory.
Download the Spring framework.
Locate the spring-jdbc.jar and copy it in the SERVICEMIX_HOME/lib directory.
Edit the jndi.xml file in the SERVICEMIX_HOME/conf directory.
Locate the <util:map id="jndiEntries"> node.
Add this node to it.
<entry key="java:comp/env/jdbc/datasourcename">
<bean class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="com.mysql.jdbc.Driver"/>
<property name="url" value="jdbc:mysql://localhost/databasename"/>
<property name="username" value = "ruuht"/>
<property name="password" value = "ohnePasswort"/>