<? 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:context ="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd" >
< context:property-placeholder
location ="classpath:db-connection.properties" />
<!-- 国际化资源
<bean id="messageSource"
class="org.springframework.context.support.ResourceBundleMessageSource">
<property name="basenames">
<value>com/esc/message</value>
</property>
</bean>-->
< bean id ="dataSource"
class ="org.logicalcobwebs.proxool.ProxoolDataSource" destroy-method="" >
< property name ="driver" >
< value >com.mysql.jdbc.Driver </ value >
</ property >
<!-- 这个属性也留到org.logicalcobwebs.proxool.ProxoolDataSource的getDriverUrl里去取了 -->
<!--
<property name="driverUrl">
<value>${db.driverUrl}</value>
-->
<!--
<value>jdbc:oracle:thin:newcrm/
[email protected]:1521:crmtest</value>
<value>jdbc:oracle:thin:crm/
[email protected]:1521:crmtest</value>
<value>jdbc:oracle:thin:crm/crmdeng1234@(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = dddb1)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = dddb2)(PORT = 1521))
(LOAD_BALANCE = yes)
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ddcrm.domain.com)
(FAILOVER_MODE =
(TYPE = SELECT)
(METHOD = BASIC)
(RETRIES = 30)
(DELAY = 5)
)
)
)
</value>-->
<!--
</property>
-->
< property name ="user" >
< value >${db.user} </ value >
</ property >
< property name ="password" >
< value >${db.password} </ value >
</ property >
< property name ="alias" >
< value >${db.alias} </ value >
</ property >
< property name ="houseKeepingSleepTime" >
< value type ="long" >${db.houseKeepingSleepTime} </ value >
</ property >
< property name ="prototypeCount" >
< value >${db.prototypeCount} </ value >
</ property >
< property name ="maximumConnectionCount" >
< value >${db.maximumConnectionCount} </ value >
</ property >
< property name ="minimumConnectionCount" >
< value >${db.minimumConnectionCount} </ value >
</ property >
< property name ="trace" >
< value >${db.trace} </ value >
</ property >
< property name ="verbose" >
< value >${db.verbose} </ value >
</ property >
< property name ="maximumConnectionLifetime" >
< value >${db.maximumConnectionLifetime} </ value >
</ property >
< property name ="simultaneousBuildThrottle" >
< value >${db.simultaneousBuildThrottle} </ value >
</ property >
< property name ="recentlyStartedThreshold" >
< value >${db.recentlyStartedThreshold} </ value >
</ property >
< property name ="overloadWithoutRefusalLifetime" >
< value >${db.overloadWithoutRefusalLifetime} </ value >
</ property >
< property name ="statistics" >
< value >${db.statistics} </ value >
</ property >
< property name ="statisticsLogLevel" >
< value >${db.statisticsLogLevel} </ value >
</ property >
< property name ="maximumActiveTime" >
< value >${db.maximumActiveTime} </ value >
</ property >
</ bean >
。。。
。。。