asan-dashboard.3.3.7.source-code.datasource-conf.xml Maven / Gradle / Ivy
<?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" xmlns:jdbc="http://www.springframework.org/schema/jdbc" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.1.xsd http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-3.1.xsd "> <util:map id="platformHibernateProperties"> <entry key="hibernate.dialect" value="${datasource.dialect}"/> <entry key="hibernate.show_sql" value="${datasource.show-sql}"/> <entry key="hibernate.transaction.coordinator_class" value="jta" /> <entry key="hibernate.transaction.jta.platform" value="JBossTS" /> <entry key="hibernate.connection.autocommit" value="false" /> <entry key="hibernate.criteria.literal_handling_mode" value="BIND"/> <entry key="hibernate.enable_lazy_load_no_trans" value="true" /> </util:map> <bean id="ikasanDatasource" name="ikasan.ds ikasan.xads" class="org.apache.commons.dbcp2.BasicDataSource"> <property name="driverClassName" value="${datasource.driver-class-name}"/> <property name="url" value="${datasource.url}" /> <property name="username" value="${datasource.username}" /> <property name="password" value="${datasource.password}" /> <property name="initialSize" value="${datasource.min.pool.size}" /> <property name="maxTotal" value="${datasource.max.pool.size}" /> <property name="validationQuery" value="${datasource.validationQuery}" /> <property name="validationQueryTimeout" value="${datasource.validationQueryTimeout}" /> </bean> </beans>