Skip Headers

# ConnectionPolicy Method setShouldUseExclusiveConnection

Previous

Next

Client sessions can access the data source using a connection pool or an exclusive connection. To use an exclusive connection, acquire your client session using a `ConnectionPolicy` (see "Acquiring a Client Session That Uses Exclusive Connections").

If you are using isolated client sessions (see "Isolated Client Sessions"), you can use exclusive connections for reading isolated data. In this case, you can configure TopLink to acquire an exclusive connection from the write connection pool and use it for both writing and reading isolated data. However, TopLink still acquires a shared connection from the read connection pool for reading nonisolated data.

For more information, see "Exclusive Write Connections".