mirror of https://github.com/apache/activemq.git
commit
6efafbd7f1
|
@ -135,17 +135,10 @@
|
|||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.openejb</groupId>
|
||||
<artifactId>openejb-core</artifactId>
|
||||
<version>3.1</version>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-dbcp2</artifactId>
|
||||
<optional>true</optional>
|
||||
<scope>test</scope>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.apache.activemq</groupId>
|
||||
<artifactId>activemq-core</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.objectweb.howl</groupId>
|
||||
|
|
|
@ -33,7 +33,7 @@ import org.apache.activemq.util.Wait;
|
|||
import org.apache.camel.Exchange;
|
||||
import org.apache.camel.component.jms.JmsMessage;
|
||||
import org.apache.camel.test.spring.CamelSpringTestSupport;
|
||||
import org.apache.commons.dbcp.BasicDataSource;
|
||||
import org.apache.commons.dbcp2.BasicDataSource;
|
||||
import org.junit.Test;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
|
|
@ -34,7 +34,7 @@ import org.apache.activemq.command.ActiveMQQueue;
|
|||
import org.apache.activemq.command.TransactionId;
|
||||
import org.apache.activemq.util.Wait;
|
||||
import org.apache.camel.test.spring.CamelSpringTestSupport;
|
||||
import org.apache.commons.dbcp.BasicDataSource;
|
||||
import org.apache.commons.dbcp2.BasicDataSource;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.slf4j.Logger;
|
||||
|
|
|
@ -78,16 +78,12 @@
|
|||
<property name="cacheLevel" value="0"/>
|
||||
</bean>
|
||||
|
||||
<!-- openejb provides geronimo NamedXAResources wrapper around commons dbcp such that they have an identity in the howl log -->
|
||||
<bean id="geronimoXAResourceWrapper"
|
||||
class="org.apache.openejb.resource.GeronimoTransactionManagerFactory.GeronimoXAResourceWrapper"/>
|
||||
<bean id="managedDataSourceWithRecovery" class="org.apache.openejb.resource.jdbc.ManagedDataSourceWithRecovery">
|
||||
<constructor-arg>
|
||||
<ref bean="geronimoXAResourceWrapper"></ref>
|
||||
</constructor-arg>
|
||||
<property name="jdbcDriver" value="org.apache.derby.jdbc.EmbeddedDriver"/>
|
||||
<property name="jdbcUrl" value="jdbc:derby:target/XatestDs;create=true"/>
|
||||
<property name="transactionManager" ref="jenckTransactionManager"/>
|
||||
<bean id="managedDataSourceWithRecovery" class="org.apache.commons.dbcp2.managed.BasicManagedDataSource" destroy-method="close">
|
||||
<property name="driverClassName" value="org.apache.derby.jdbc.EmbeddedDriver" />
|
||||
<property name="url" value="jdbc:derby:target/XatestDs;create=true" />
|
||||
<property name="username" value="user" />
|
||||
<property name="password" value="secret" />
|
||||
<property name="transactionManager" ref="jenckTransactionManager" />
|
||||
</bean>
|
||||
|
||||
<bean id="required" class="org.apache.camel.spring.spi.SpringTransactionPolicy">
|
||||
|
|
|
@ -78,16 +78,12 @@
|
|||
<property name="cacheLevel" value="0"/>
|
||||
</bean>
|
||||
|
||||
<!-- openejb provides geronimo NamedXAResources wrapper around commons dbcp such that they have an identity in the howl log -->
|
||||
<bean id="geronimoXAResourceWrapper"
|
||||
class="org.apache.openejb.resource.GeronimoTransactionManagerFactory.GeronimoXAResourceWrapper"/>
|
||||
<bean id="managedDataSourceWithRecovery" class="org.apache.openejb.resource.jdbc.ManagedDataSourceWithRecovery">
|
||||
<constructor-arg>
|
||||
<ref bean="geronimoXAResourceWrapper"></ref>
|
||||
</constructor-arg>
|
||||
<property name="jdbcDriver" value="org.apache.derby.jdbc.EmbeddedDriver"/>
|
||||
<property name="jdbcUrl" value="jdbc:derby:target/XatestDs;create=true"/>
|
||||
<property name="transactionManager" ref="jenckTransactionManager"/>
|
||||
<bean id="managedDataSourceWithRecovery" class="org.apache.commons.dbcp2.managed.BasicManagedDataSource" destroy-method="close">
|
||||
<property name="driverClassName" value="org.apache.derby.jdbc.EmbeddedDriver" />
|
||||
<property name="url" value="jdbc:derby:target/XatestDs;create=true" />
|
||||
<property name="username" value="user" />
|
||||
<property name="password" value="secret" />
|
||||
<property name="transactionManager" ref="jenckTransactionManager" />
|
||||
</bean>
|
||||
|
||||
<bean id="required" class="org.apache.camel.spring.spi.SpringTransactionPolicy">
|
||||
|
|
|
@ -244,9 +244,9 @@
|
|||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-dbcp</groupId>
|
||||
<artifactId>commons-dbcp</artifactId>
|
||||
<version>1.4</version>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-dbcp2</artifactId>
|
||||
<version>2.1</version>
|
||||
<optional>true</optional>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
|
|
@ -87,7 +87,7 @@
|
|||
|
||||
<!-- MySql DataSource Sample Setup -->
|
||||
<!--
|
||||
<bean id="mysql-ds" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
|
||||
<bean id="mysql-ds" class="org.apache.commons.dbcp2.BasicDataSource" destroy-method="close">
|
||||
<property name="driverClassName" value="com.mysql.jdbc.Driver"/>
|
||||
<property name="url" value="jdbc:mysql://localhost/activemq"/>
|
||||
<property name="username" value="activemq"/>
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
|
||||
<!-- MySql DataSource Sample Setup -->
|
||||
<!--
|
||||
<bean id="mysql-ds" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
|
||||
<bean id="mysql-ds" class="org.apache.commons.dbcp2.BasicDataSource" destroy-method="close">
|
||||
<property name="driverClassName" value="com.mysql.jdbc.Driver"/>
|
||||
<property name="url" value="jdbc:mysql://localhost/activemq?relaxAutoCommit=true"/>
|
||||
<property name="username" value="activemq"/>
|
||||
|
|
|
@ -223,8 +223,8 @@
|
|||
<artifactId>commons-beanutils</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-dbcp</groupId>
|
||||
<artifactId>commons-dbcp</artifactId>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-dbcp2</artifactId>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
|
|
@ -172,7 +172,7 @@
|
|||
<include>${pom.groupId}:activeio-core</include>
|
||||
<include>commons-beanutils:commons-beanutils</include>
|
||||
<include>commons-collections:commons-collections</include>
|
||||
<include>commons-dbcp:commons-dbcp</include>
|
||||
<include>org.apache.commons:commons-dbcp2</include>
|
||||
<include>commons-pool:commons-pool</include>
|
||||
<include>commons-codec:commons-codec</include>
|
||||
<include>commons-net:commons-net</include>
|
||||
|
|
|
@ -261,24 +261,24 @@
|
|||
|
||||
<!-- MySql DataSource Sample Setup -->
|
||||
<!--
|
||||
<bean id="mysql-ds" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
|
||||
<bean id="mysql-ds" class="org.apache.commons.dbcp2.BasicDataSource" destroy-method="close">
|
||||
<property name="driverClassName" value="com.mysql.jdbc.Driver"/>
|
||||
<property name="url" value="jdbc:mysql://localhost/activemq?relaxAutoCommit=true"/>
|
||||
<property name="username" value="activemq"/>
|
||||
<property name="password" value="activemq"/>
|
||||
<property name="maxActive" value="200"/>
|
||||
<property name="maxTotal" value="200"/>
|
||||
<property name="poolPreparedStatements" value="true"/>
|
||||
</bean>
|
||||
-->
|
||||
|
||||
<!-- Oracle DataSource Sample Setup -->
|
||||
<!--
|
||||
<bean id="oracle-ds" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
|
||||
<bean id="oracle-ds" class="org.apache.commons.dbcp2.BasicDataSource" destroy-method="close">
|
||||
<property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/>
|
||||
<property name="url" value="jdbc:oracle:thin:@localhost:1521:AMQDB"/>
|
||||
<property name="username" value="scott"/>
|
||||
<property name="password" value="tiger"/>
|
||||
<property name="maxActive" value="200"/>
|
||||
<property name="maxTotal" value="200"/>
|
||||
<property name="poolPreparedStatements" value="true"/>
|
||||
</bean>
|
||||
-->
|
||||
|
@ -291,4 +291,4 @@
|
|||
</bean>
|
||||
-->
|
||||
|
||||
</beans>
|
||||
</beans>
|
||||
|
|
|
@ -70,13 +70,13 @@
|
|||
|
||||
|
||||
<!-- MySql DataSource Sample Setup -->
|
||||
<bean id="mysql-ds" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
|
||||
<bean id="mysql-ds" class="org.apache.commons.dbcp2.BasicDataSource" destroy-method="close">
|
||||
<property name="driverClassName" value="com.mysql.jdbc.Driver"/>
|
||||
<property name="url" value="jdbc:mysql://localhost/activemq?relaxAutoCommit=true"/>
|
||||
<property name="username" value="root"/>
|
||||
<property name="password" value="root"/>
|
||||
<property name="maxActive" value="200"/>
|
||||
<property name="maxTotal" value="200"/>
|
||||
<property name="poolPreparedStatements" value="true"/>
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
</beans>
|
||||
|
|
|
@ -77,26 +77,26 @@
|
|||
|
||||
<!-- MySql DataSource Sample Setup -->
|
||||
<!--
|
||||
<bean id="mysql-ds" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
|
||||
<bean id="mysql-ds" class="org.apache.commons.dbcp2.BasicDataSource" destroy-method="close">
|
||||
<property name="driverClassName" value="com.mysql.jdbc.Driver"/>
|
||||
<property name="url" value="jdbc:mysql://localhost/activemq?relaxAutoCommit=true"/>
|
||||
<property name="username" value="activemq"/>
|
||||
<property name="password" value="activemq"/>
|
||||
<property name="maxActive" value="200"/>
|
||||
<property name="maxTotal" value="200"/>
|
||||
<property name="poolPreparedStatements" value="true"/>
|
||||
</bean>
|
||||
-->
|
||||
|
||||
<!-- Oracle DataSource Sample Setup -->
|
||||
<!--
|
||||
<bean id="oracle-ds" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
|
||||
<bean id="oracle-ds" class="org.apache.commons.dbcp2.BasicDataSource" destroy-method="close">
|
||||
<property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/>
|
||||
<property name="url" value="jdbc:oracle:thin:@localhost:1521:AMQDB"/>
|
||||
<property name="username" value="scott"/>
|
||||
<property name="password" value="tiger"/>
|
||||
<property name="maxActive" value="200"/>
|
||||
<property name="maxTotal" value="200"/>
|
||||
<property name="poolPreparedStatements" value="true"/>
|
||||
</bean>
|
||||
-->
|
||||
|
||||
</beans>
|
||||
</beans>
|
||||
|
|
8
pom.xml
8
pom.xml
|
@ -53,7 +53,7 @@
|
|||
<commons-beanutils-version>1.8.3</commons-beanutils-version>
|
||||
<commons-collections-version>3.2.1</commons-collections-version>
|
||||
<commons-daemon-version>1.0.15</commons-daemon-version>
|
||||
<commons-dbcp-version>1.4</commons-dbcp-version>
|
||||
<commons-dbcp2-version>2.1</commons-dbcp2-version>
|
||||
<commons-io-version>2.4</commons-io-version>
|
||||
<commons-lang-version>2.6</commons-lang-version>
|
||||
<commons-logging-version>1.1.3</commons-logging-version>
|
||||
|
@ -848,9 +848,9 @@
|
|||
-->
|
||||
|
||||
<dependency>
|
||||
<groupId>commons-dbcp</groupId>
|
||||
<artifactId>commons-dbcp</artifactId>
|
||||
<version>${commons-dbcp-version}</version>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-dbcp2</artifactId>
|
||||
<version>${commons-dbcp2-version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
|
|
Loading…
Reference in New Issue