In Richard Monson-Haefel's book *Enterprise JavaBeans*, each time he
uses a database Connection that he's gotten from a DataSource, he
calls close() on it when he's finished with it. Am I missing
something, or does this not make sense? It's my understanding that
once close() is called on a Connection, it can never be used again.
How can a container acheive connection pooling this way? Also,
wouldn't calling close() on a connection necessarily commit or roll
back any in-progress transactions on that connection, possibly hosing
any in-progress container-managed transaction?

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to