.
:
`
<bean id="oracleDataSource" class="oracle.jdbc.pool.OracleDataSource" destroy-method="close"
p:URL="${url}"
p:user="${username}"
p:password="${password}"
p:connectionCachingEnabled="true">
<property name="connectionProperties">
<props merge="default">
<prop key="AutoCommit">false</prop>
</props>
</property>
<property name="connectionCacheProperties">
<props>
<prop key="MinLimit">5</prop>
<prop key="MaxLimit">10</prop>
<prop key="InactivityTimeout">2</prop>
</props>
</property>
</bean>
`
, , , , , 10 . .
connectionCache, , ,
Connection connection = getJdbcTemplate().getDataSource().getConnection();
, JDBCTemplate . , , . , , , , maxLimit.
, - , , ArrayDescriptor [ PLSQL, IN, , Varchar RAW]. ArrayDescriptor,
ArrayDescriptor arrayDescriptor = ArrayDescriptor.createDescriptor(
"SOME_TYPE_NAME", connection );
ARRAY SQLArray= new ARRAY(arrayDescriptor, connection , arrayString);
, a connection.close().
:
Connection connection = getJdbcTemplate().getDataSource().getConnection()
- , .
, . !.So maxLimit 10,
10 , ,
, [ ].
, , 10 db, maxLimit 10.
, , ,
JDBCTemplate [ 10 ]
, getJdbcTemplate().getDataSource().getConnection()
, .
- , .
.. connection.close()
, Spring, Spring
. Oracle Data Source JDBCTemplate, [
] Spring.