12.11.2014 Views

web server - Borland Technical Publications

web server - Borland Technical Publications

web server - Borland Technical Publications

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Connection management<br />

Configuring connection properties<br />

The following connection pool properties can be set:<br />

Property Value type Description Default<br />

wait-timeout Integer The number of seconds to wait for a<br />

free connection when maximumcapacity<br />

connections are already<br />

opened. When using the maximumcapacity<br />

property and the pool is at<br />

its max and can't serve any more<br />

connections, the threads looking for<br />

connections end up waiting for the<br />

connection(s) to become available<br />

for a long time if the wait time is<br />

unbounded (set to 0 seconds). You<br />

can set the wait-timeout period to<br />

suit your needs.<br />

30<br />

busy-timeout Integer The number of seconds to wait<br />

before a busy connection is<br />

released. If a connection is busy for<br />

a long time, the application using it<br />

may have hung and be unable to<br />

release the connection. This timeout<br />

will ensure that connections will be<br />

timed out when they have been busy<br />

for much longer than necessary.<br />

idle-timeout Integer A pooled connection remaining in an<br />

idle state for a period of time longer<br />

than this timeout value should be<br />

closed to conserve resources. All<br />

idle connections are checked for<br />

idle-timeout expiration every 60<br />

seconds. The value of the idletimeout<br />

is given in seconds. A value<br />

of 0 (zero) indicates that connection<br />

cleanup is disabled.<br />

maximum-capacity Integer Identifies the maximum number of<br />

managed connections which<br />

VisiConnect will allow. Throws<br />

ResourceAllocationException when<br />

requests for newly allocated<br />

managed connections go beyond<br />

this limit.<br />

The following properties are no longer used and are now ignored by VisiConnect. They<br />

are replaced in BES 6.5 by the pool properties busy-timeout, idle-timeout, and waittimeout,<br />

listed in the table above. You do not have to delete the old-style properties<br />

from ra-borland.xml, but they will no longer have any effect.<br />

Unused Pool properties<br />

600 (ten minutes)<br />

600 (ten minutes)<br />

10<br />

Table 27.1<br />

Unused pool properties<br />

Property Default Description<br />

initial-capacity 1 Identifies the initial number of managed<br />

connections which VisiConnect will attempt to<br />

obtain during deployment.<br />

capacity-delta 1 Identifies the number of additional managed<br />

connections which the VisiConnect will attempt to<br />

obtain during resizing of the maintained connection<br />

pool.<br />

Chapter 27: Using VisiConnect 259

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!