Re: what is java connection and what is mysql connection?
Posted by: Filipe Silva
Date: January 13, 2015 05:15AM

Hi,

Surely what's happening is that when you request a Connection from a BasicDataSource you're actually getting a org.apache.commons.dbcp2.PoolableConnection, which must be some kind of decorator for a java.sql.Connection, in your case implemented by Connector/J. So, as per dbcp API documentation, a PoolableConnection is "A delegating connection that, rather than closing the underlying connection, returns itself to an ObjectPool when closed."

Options: ReplyQuote


Subject
Written By
Posted
Re: what is java connection and what is mysql connection?
January 13, 2015 05:15AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.