Oracle - connection Pooling with spring framework

后端 未结 5 2019
萌比男神i
萌比男神i 2021-02-01 11:38

We are trying to implement Oracle connection pooling with the help of Spring Framework. We are using DBCP connection pooling method. However the integration between DBCP and spr

5条回答
  •  悲哀的现实
    2021-02-01 12:00

    I would use Oracles supplied solution, which in included in their ojdbc jars. The older way was with the class OracleConnectionPoolDataSource but now you can set a parameter on a regular OracleDataSource and get connection pooling.

    Here is how to do it in Spring:

    
       
       
       ...all your connection properties
       
          
             20
          
       
    
    

提交回复
热议问题