<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC  "-//ACTIVEMQ//DTD//EN" "http://activemq.org/dtd/activemq.dtd">
<beans>
  <!-- ==================================================================== -->
  <!-- ActiveMQ Broker Configuration -->
  <!-- ==================================================================== -->
  <broker>
    <connector>
        <tcpServerTransport uri="tcp://localhost:61616" 
                          backlog="1000" 
                          useAsyncSend="false" 
                          maxOutstandingMessages="50"/>
    </connector>
    <persistence>
        <!-- you can point this to a different datasource -->
        <jdbcPersistence dataSourceRef="derby-ds"/>
    </persistence>
  </broker>

  <!-- ==================================================================== -->
  <!-- JDBC DataSource Configurations -->
  <!-- ==================================================================== -->

  <!-- The Derby Datasource that will be used by the Broker -->
    <bean id="derby-ds" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
        <property name="driverClassName">
            <value>org.apache.derby.jdbc.EmbeddedDriver</value>
        </property>
        <property name="url">
            <value>jdbc:derby:target/data/derbydb;create=true</value>
        </property>
        <property name="username">
            <value></value>
        </property>
        <property name="password">
            <value></value>
        </property>
        <property name="poolPreparedStatements">
            <value>true</value>
        </property>
    </bean>

  <!-- The MYSQL Datasource that will be used by the Broker -->
  <bean id="mysql-ds"
        class="org.apache.commons.dbcp.BasicDataSource" 
        destroy-method="close">
    <property name="driverClassName">
        <value>com.mysql.jdbc.Driver</value>
    </property>
    <property name="url">
        <value>jdbc:mysql://localhost/activemq</value>
    </property>
    <property name="username">
        <value>myname</value>
    </property>
    <property name="password">
        <value>mypassword</value>
    </property>
    <property name="poolPreparedStatements">
        <value>true</value>
    </property>    
  </bean>
  
</beans>
