**Cherry-pick to master** Conflicts: build.gradle spring-integration-jdbc/src/test/java/org/springframework/integration/jdbc/store/channel/DataSource-derby-context.xml
25 lines
1.0 KiB
XML
25 lines
1.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xmlns:jdbc="http://www.springframework.org/schema/jdbc"
|
|
xsi:schemaLocation="http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc.xsd
|
|
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
|
|
|
|
<jdbc:embedded-database id="dataSource" type="DERBY" />
|
|
|
|
<jdbc:initialize-database data-source="dataSource" ignore-failures="DROPS" >
|
|
<jdbc:script location="classpath:derby-stored-procedures-drops.sql"/>
|
|
<jdbc:script location="classpath:derby-stored-procedures.sql"/>
|
|
</jdbc:initialize-database>
|
|
|
|
<bean class="org.springframework.jdbc.core.JdbcTemplate">
|
|
<constructor-arg ref="dataSource"/>
|
|
</bean>
|
|
|
|
<bean id="transactionManager"
|
|
class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
|
|
<property name="dataSource" ref="dataSource" />
|
|
</bean>
|
|
|
|
</beans>
|