Generally for each resource type or for each connection factory in the file weblogic-ra.xml
, you can specify how connection pooling is carried out.
Connection pooling is used in order to increase the performance. max-capacity
defines how many connections can be active for a connection factory at any one time; the default value is 10. Oracle WebLogic Server rejects connection requests that go beyond the number defined here with a ResourceAllocationException
.
Connections which are used frequently and by many clients should be defined with large values for max-capacity
. For rarely used connections you need not define connection pooling at all. For the other pool parameters, see the schema description for the file weblogic-ra.xml
.
A connection factory definition with sample settings is listed in Example 7:
Example 7 Connection pooling
<connection-instance> <jndi-name>eis/my_EIS</jndi-name> <connection-properties> <pool-params> <initial-capacity>2</initial-capacity> <max-capacity>10</max-capacity> </pool-params> ... </connection-properties> </connection-instance>
For the other pool parameters, see the schema description for the file weblogic-ra.xml
.