PageRenderTime 42ms CodeModel.GetById 39ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/web/DRCP/war/WEB-INF/spring-persistence-transaction-local.xml

http://drcp.googlecode.com/
XML | 40 lines | 15 code | 9 blank | 16 comment | 0 complexity | da6db2e6991df5f178f8f8858537983a MD5 | raw file
 1<?xml version="1.0" encoding="UTF-8"?>
 2<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
 3
 4<!--
 5  - Application context definition for JPetStore's data access layer.
 6  - Accessed by business layer objects defined in "applicationContext.xml"
 7  - (see web.xml's "contextConfigLocation").
 8  -
 9  - This version of the data access layer works on a combined database,
10  - using a local DataSource with DataSourceTransactionManager. It does not
11  - need any JTA support in the container: It will run as-is in plain Tomcat.
12  -->
13<beans>
14	
15	
16	<!-- ========================= RESOURCE DEFINITIONS ========================= -->
17	
18	
19	<!-- Local Apache Commons DBCP DataSource that refers to a combined database -->
20	<!-- (see dataAccessContext-jta.xml for an alternative) -->
21	<!-- The placeholders are resolved from jdbc.properties through -->
22	<!-- the PropertyPlaceholderConfigurer in applicationContext.xml -->
23	<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"
24		destroy-method="close">
25		<property name="driverClassName" value="${jdbc.driverClassName}"/>
26		<property name="url" value="${jdbc.url}"/>
27		<property name="username" value="${jdbc.username}"/>
28		<property name="password" value="${jdbc.password}"/>
29	</bean>
30	
31	<!-- Transaction manager for a single JDBC DataSource -->
32	<!-- (see dataAccessContext-jta.xml for an alternative) -->
33	<bean id="transactionManager"
34		class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
35		<property name="dataSource" ref="dataSource"/>
36	</bean>
37		
38	
39	
40</beans>