All Downloads are FREE. Search and download functionalities are using the official Maven repository.

en.help.ref-jdbcconnectionpooledittab.html Maven / Gradle / Ivy

The newest version!

Edit Connection Pool

Use the Edit Connection Pool page to edit the general properties of a JDBC connection pool.

The Edit Connection Pool page contains the following options.

Load Defaults

Button to restore settings that have default values to their default values. Settings that do not have default values are not changed.

Flush

Button to reinitialize the connections in the connection pool. Clicking this button destroys any existing connections, recreates connections established for the pool, and restores the pool to its initial and minimum pool size.

Ping

Button to verify that the connection pool is usable. If an error message appears when you click this button, check to see if the database server has been started.

Pool Name

The name of the connection pool. This is a read-only field. You can only specify the pool name when you create a JDBC connection pool.

Resource Type

Choices include javax.sql.XADataSource (global transactions), java.sql.ConnectionPoolDataSource (local transactions, possible performance improvements), javax.sql.DataSource (local transactions only), and java.sql.Driver.

Datasource Classname

The vendor-specific class name that implements the data source.

Driver Classname

The vendor-supplied JDBC driver class name. If you selected the java.sql.Driver resource type, this field is usually filled in automatically with the class name associated with the driver and database vendor you chose. If you selected one of the datasource resource types, this field is disabled.

Ping

If this option is selected, the pool will be pinged automatically during pool creation or reconfiguration to identify and warn of any erroneous attribute values. This option is disabled by default.

Description

A short description for the connection pool.

Initial and Minimum Pool Size

The minimum number of connections in the pool. This value also determines the number of connections placed in the pool when the pool is first created or when the GlassFish Server starts. The default value is 8.

Maximum Pool Size

The maximum number of connections in the pool. The default value is 32.

Pool Resize Quantity

When the pool scales up and scales down toward the maximum and minimum pool size respectively, it is resized in batches. This value determines the number of connections in the batch. Making this value too large delays connection creation and recycling; making it too small will be less efficient. The default value is 2.

Idle Timeout

The maximum time, in seconds, that a connection can remain idle in the pool. After this time expires, the connection is removed from the pool. The default value is 300.

Max Wait Time

The maximum time, in milliseconds, that an application requesting a connection will wait before getting a connection timeout. The default value is 60,000.

Non Transactional Connections

If this option is enabled, non-transactional connections are returned. By default, this option is not specified.

Transaction Isolation

If a transaction isolation level is specified, connections in this pool operate at the specified level. Otherwise, the connections operate with default isolation levels provided by the JDBC driver. By default, this option is not specified.

Isolation Level

If the Guaranteed checkbox is selected, then all connections taken from the pool have the same isolation level. For example, if the isolation level for the connection is changed programmatically (with con.setTransactionIsolation) when last used, then this mechanism changes the status back to the specified isolation level.

This field is only applicable if a transaction isolation level has been specified.

Related Tasks
Related asadmin Commands
Copyright © 2005, 2011, Oracle and/or its affiliates. All rights reserved. Legal Notices




© 2015 - 2024 Weber Informatics LLC | Privacy Policy