| Maintains SeConnection 's for a single set of connection
properties (for instance: by server, port, user and password) in a pooled way
Since sde connections are not jdbc connections, I can't use Sean's excellent
connection pool. So I'll borrow most of it.
This connection pool is configurable in the sense that some parameters can be
passed to establish the pooling policy. To pass parameters to the connection
pool, you should set some properties in the parameters Map passed to
SdeDataStoreFactory.createDataStore, wich will invoke
SdeConnectionPoolFactory to get the SDE instance's pool singleton. That
instance singleton will be created with the preferences passed the first time
createDataStore is called for a given SDE instance/user, if subsecuent calls
change that preferences, they will be ignored.
The expected optional parameters that you can set up in the argument Map for
createDataStore are:
- pool.minConnections Integer, tells the minimun number of open
connections the pool will maintain opened
- pool.maxConnections Integer, tells the maximun number of open
connections the pool will create and maintain opened
- pool.timeOut Integer, tells how many milliseconds a calling thread is
guaranteed to wait before getConnection() throws an
UnavailableArcSDEConnectionException
author: Gabriel Roldan, Axios Engineering version: $Id: ArcSDEConnectionPool.java 27863 2007-11-12 20:34:34Z desruisseaux $ |