Lazy Association Connections are lazily associated when anoperation is performed on them.Also,
they are disassociatedwhen the transaction is completed anda component
method ends, whichhelps reuse of the physical connections.Defaultvalue is false.
Lazy Connection
Enlistment
Enable this optionto enlist a resource to thetransaction only when it is actually
used in amethod.
Associate withThread Enable this option to associatea connection with the thread suchthat when the
same thread isin need of a connection, itcan reuse the connection already
associated with it,thereby not incurring the overhead ofgetting a connection from
the pool. Default valueis false.
Match Connections Use this optionto switch on/o connection matchingfor the pool. It can beset to
false if theadministrator knows that the connections inthe pool will always be
homogeneous and hencea connection picked from the poolneed not be matched
by the resourceadapter. Default value is false.
Max Connection Usage Specify the numberof times a connection should bereused by the pool. Once a
connection is reusedfor the specied number of times,it will be closed. This is
useful, for instance,to avoid statement-leaks. The default valueof 0 implies that
this attribute isnot enabled.
Click Save forthe changes to takeeect.
Click LoadDefaults if you want to restorethe default values of allthe settings.
Using the asadmin commands to change connection pool properties.
You can use the asadmin get and set commands to view and change the values of the
connection pool properties.
To list all the connector connection pools in the server:
asadmin list domain.resources.connector-connection-pool.*
To view the properties of the connector connection pool, you can use the following command:
asadmin get domain.resources.connector-connection-pool.conectionpoolname.*
To set a property of the connector connection pool, you can use the following command:
asadmin set
domain.resources.connector-connection-pool.conectionpoolname.validate-atmost-once-period-in-seconds=3
2
3
MoreInformation
ManagingConnectorConnection Pools
SunGlassFishEnterpriseServer2.1AdministrationGuide • December200886