<?xml version="1.0" encoding="UTF-8"?>

<blueprint default-activation="eager"
           xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

           xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0
                               http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance">

  <reference id="transactionManager" interface="javax.transaction.TransactionManager"/>

  <bean id="dataSource" class="org.apache.commons.dbcp.managed.BasicManagedDataSource">
    <property name="transactionManager" ref="transactionManager"/>
    <property name="driverClassName" value="${maven.jdbc.driver.class}"/>
    <property name="url" value="${maven.jdbc.url}"/>
    <property name="username" value="${maven.jdbc.username}"/>
    <property name="password" value="${maven.jdbc.password}"/>
  </bean>

  <service id="dataSourceService" interface="javax.sql.DataSource" ref="dataSource">
    <service-properties>
      <entry key="osgi.jndi.service.name" value="jdbc/process-persistence-ds"/>
    </service-properties>
  </service>

</blueprint>
