All Downloads are FREE. Search and download functionalities are using the official Maven repository.

e.ibis-adapterframework-core.7.9.5.source-code.springJETTYMVN.xml Maven / Gradle / Ivy

The newest version!
<?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:util="http://www.springframework.org/schema/util"
	xsi:schemaLocation=
		"
			http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
			http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd
		"
	>

	<bean id="txManagerReal" class="nl.nn.adapterframework.jta.ThreadConnectableDataSourceTransactionManager">
		<property name="dataSource">
			<ref bean="defaultDataSource"/>
		</property>
		<property name="transactionSynchronization">
			<util:constant static-field="org.springframework.transaction.support.AbstractPlatformTransactionManager.SYNCHRONIZATION_ON_ACTUAL_TRANSACTION"/>
		</property>
	</bean>

	<bean
		id="defaultDataSource"
		factory-bean="dataSourceFactory"
		factory-method="add"
		>
		<constructor-arg ref="dataSourceTxProxy" />
		<constructor-arg value="${jdbc.datasource.default}" />
	</bean>

	<bean id="dataSourceTxProxy" class="org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy">
		<property name="targetDataSource">
			<ref bean="h2DataSource"/>
		</property>
	</bean>

	<bean id="h2DataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
		<property name="driverClassName" value="org.h2.Driver"/>
		<property name="url" value="jdbc:h2:mem:"/>
	</bean>

</beans>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy