33 lines
1.7 KiB
XML
33 lines
1.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context"
|
|
xmlns:tx="http://www.springframework.org/schema/tx"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
|
|
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
|
|
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
|
|
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.2.xsd">
|
|
|
|
<!--Baza danych przechowująca aktualnie wykonywane transakcje.-->
|
|
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
|
|
<property name="driverClassName" value="org.postgresql.Driver"/>
|
|
<property name="url" value="jdbc:postgresql://localhost:5432/orbeon"/>
|
|
<property name="username" value="postgres"/>
|
|
<property name="password" value="postgres"/>
|
|
<property name="maxWait" value="10000"/>
|
|
</bean>
|
|
<!--Baza danych mappera -->
|
|
<bean name="mapperDataSource" id="mapperDataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
|
|
<property name="driverClassName" value="org.postgresql.Driver"/>
|
|
<property name="url" value="jdbc:postgresql://localhost:5432/orbeon_mapper"/>
|
|
<property name="username" value="postgres"/>
|
|
<property name="password" value="postgres"/>
|
|
</bean>
|
|
|
|
<bean id="txManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
|
|
<property name="dataSource" ref="dataSource" />
|
|
</bean>
|
|
|
|
<tx:annotation-driven transaction-manager="txManager" />
|
|
<context:annotation-config/>
|
|
</beans>
|