mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-18 14:58:47 +00:00
Remove Subclassing/Dynamic Proxy support - beans must be enhanced
This commit is contained in:
1 parent
66880aa340
commit
2567022d95
63 files changed
+233
-2085
No files matched your search
@@ -253,8 +253,6 @@ public class PooledConnection extends ConnectionDelegator
|
||||
*/
|
||||
public void closeConnectionFully(boolean logErrors) {
|
||||
|
||||
//pool.removeConnection(this);
|
||||
|
||||
String msg = "Closing Connection[" + getName() + "]" + " psReuse[" + pstmtHitCounter
|
||||
+ "] psCreate[" + pstmtMissCounter + "] psSize[" + pstmtCache.size() + "]";
|
||||
|
||||
@@ -262,14 +260,12 @@ public class PooledConnection extends ConnectionDelegator
|
||||
|
||||
try {
|
||||
if (connection.isClosed()) {
|
||||
msg = "Closing Connection[" + getName() + "] that is already closed?";
|
||||
logger.error(msg);
|
||||
logger.warn("Closing Connection[" + getName() + "] that is already closed?");
|
||||
return;
|
||||
}
|
||||
} catch (SQLException ex) {
|
||||
if (logErrors) {
|
||||
msg = "Error when fully closing connection [" + getName() + "]";
|
||||
logger.error(msg, ex);
|
||||
logger.error("Error when fully closing connection [" + getName() + "]", ex);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -288,11 +284,9 @@ public class PooledConnection extends ConnectionDelegator
|
||||
|
||||
try {
|
||||
connection.close();
|
||||
|
||||
} catch (SQLException ex) {
|
||||
if (logErrors) {
|
||||
msg = "Error when fully closing connection [" + getName() + "]";
|
||||
logger.error(msg, ex);
|
||||
logger.error("Error when fully closing connection [" + getName() + "]", ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -338,8 +338,7 @@ public class PooledConnectionQueue {
|
||||
closeFreeConnections(true);
|
||||
|
||||
if (!busyList.isEmpty()) {
|
||||
String msg = "A potential connection leak was detected. Busy connections: "+ busyList.size();
|
||||
logger.warn(msg);
|
||||
logger.warn("A potential connection leak was detected. Busy connections: "+ busyList.size());
|
||||
|
||||
dumpBusyConnectionInformation();
|
||||
closeBusyConnections(0);
|
||||
|
||||
Reference in new issue
Block a user