public interface TdbPoolInitializer
The usage of a pool initializer turns a connection pool into a session pool. The difference is that in a session pool, the pool initializer opens databases to be used, sets up views, defines, etc. All things that need to done one time and does not have to be repeated for ever single request. This results in greater performance for the application using the pool.
An alternative to using the TdbPoolInitializer is to use a server-side startup procedure. A startup procedure is registered with the user profile of a TRIP user. The use of server-side startup procedures will in most cases give somewhat better performance than using a client-side pool initialization procedure due to reduced network traffic.
Modifier and Type | Method and Description |
---|---|
void |
initializePooledSession(TdbPooledSession session)
Perform one-time initialization of a session when it is created by the
pool.
|
void initializePooledSession(TdbPooledSession session) throws TdbException
session
- Pooled session to initializeTdbException
- If an error during initialization occurs.