Oracle TopLink Developer's Guide 10g Release 3 (10.1.3) B13593-01 |
|
![]() Previous |
![]() Next |
An exclusive connection is one that TopLink allocates specifically to a given session and one that is never used by any other session.
By default, TopLink acquires read connections for a client session from a shared read connection pool. In this case, different sessions may reuse connections and may use connections concurrently.
Allowing concurrent reads on the same connection reduces the number of read connections required and reduces the risk of having to wait for an available connection. However, many JDBC drivers do not support concurrent reads.
If you are using internal connection pools (see "Internal Connection Pools"), you can configure TopLink to acquire an exclusive connection from the read connection pool.
If you are using external connection pools, read connections are always exclusive.
To configure a TopLink read connection pool to allocate exclusive connections, use this procedure:
Expand a server session to reveal its connection pools in the Navigator.
Select a read connection pool in the Navigator. Its properties appear in the Editor.
Click the Login tab. The Login tab appears.
Click the Connection subtab. The Connection subtab appears.
Figure 89-6 Login Tab, Connection Subtab, Exclusive Connections Option
Select the Exclusive Connections option to configure TopLink to acquire an exclusive connection from the read connection pool.
Deselect the Exclusive Connections option to configure TopLink to share read connections and allow concurrent reads. Before selecting this option, ensure that your JDBC driver supports concurrent reads.