Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What algorithm is used in the Jdbc pool for re-using the pooled connections ?

0
Posted

What algorithm is used in the Jdbc pool for re-using the pooled connections ?

0

It is useful to know how the BES Jdbc pool internally works. The Jdbc connection pool that is provided by Borland Enterprise Server reuses connections if it can find them in the pool and opens new ones only if the pool is empty and maxPoolSize hasn’t reached. Two usage models of the pool: • Non-transactional use: This means the application (example an EJB) is not associated with a transaction when it requests a connection. In this case, the connection is put back into the pool as soon as the application calls java.sql.Connection.close(). • Transactional use: This means the application (thread) is associated with an active transaction when it requests a Jdbc connection. In this case, the Jdbc connection returns to be pool for re-use when the transaction ends.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123