P
Plausible Indirection
Suppose I have an application server running components in different
threads.
Will a connection pool be shared across threads?
If yes, then theoretically these different components might have
identical connection strings and end up in the same pool. Suppose
both set Max Pool Size. I'm thinking the second (or later) component
to become active might be out of luck in terms of being able to get
connections.
Can this happen?
On the other hand, if a single application runs multiple threads, you
wouldn't necessarily want a different pool for every thread.
Comments?
Thanks,
Chris
threads.
Will a connection pool be shared across threads?
If yes, then theoretically these different components might have
identical connection strings and end up in the same pool. Suppose
both set Max Pool Size. I'm thinking the second (or later) component
to become active might be out of luck in terms of being able to get
connections.
Can this happen?
On the other hand, if a single application runs multiple threads, you
wouldn't necessarily want a different pool for every thread.
Comments?
Thanks,
Chris