zoukankan      html  css  js  c++  java
  • proxool数据库连接池配置

    proxool.xml构造

    <?xml version="1.0" encoding="UTF-8"?>
    <something-else-entirely>
    	<proxool>
    		<alias>spring_pro_pool</alias>
    	<driver-url>jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=on)(ADDRESS=(PROTOCOL=TCP)(HOST=10.12.18.21)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=orcl)))</driver-url>
    		<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
    		<driver-properties>
    			<property name="user" value="orcl" />
    			<property name="password" value="<span style="font-family: Arial, Helvetica, sans-serif;">orcl</span><span style="font-family: Arial, Helvetica, sans-serif;">" /></span>
    		</driver-properties>
    
    		<house-keeping-sleep-time>90000</house-keeping-sleep-time>
    		<maximum-new-connections>400</maximum-new-connections>
    		<prototype-count>10</prototype-count>
    		<maximum-connection-count>100</maximum-connection-count>
    		<minimum-connection-count>10</minimum-connection-count>
    		<house-keeping-test-sql>select CURRENT_DATE from dual</house-keeping-test-sql>
    	</proxool>
    </something-else-entirely>
    spring配置文件配置

    <bean id="placeholderConfig"
    		class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
    		<property name ="locations">
    			<list>
    				<value>/WEB-INF/spring/myQuartzConfig.properties</value>
    			</list>
    		</property>
    	</bean>
    
        <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource" destroy-method="close">  
       		 <property name="driverClassName">  
                 <value>org.logicalcobwebs.proxool.ProxoolDriver</value>  
             </property>
             <property name="url">  
                 <value>proxool.spring_pro_pool</value>  
             </property>  
        </bean>



    版权声明:本文博主原创文章。博客,未经同意不得转载。

  • 相关阅读:
    【笔记】DLHLP
    【笔记】DLHLP
    【笔记】DLHLP
    【笔记】DLHLP
    【笔记】PyTorch框架学习 -- 2. 计算图、autograd以及逻辑回归的实现
    【笔记】PyTorch框架学习 -- 1. 张量创建及操作,线性回归的实现
    【安装指南】pytorch相关软件安装
    【笔记】机器学习
    【笔记】机器学习
    【笔记】机器学习
  • 原文地址:https://www.cnblogs.com/blfshiye/p/4800253.html
Copyright © 2011-2022 走看看