Author: nzamosenchuk
Date: 2010-02-08 03:38:18 -0500 (Mon, 08 Feb 2010)
New Revision: 1711
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/lock/jbosscache/jdbc/LockJDBCContainer.java
Log:
EXOJCR-472: Close connection in LockJDBCContainer's constructor, if
!jdbcConn.isClosed().
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/lock/jbosscache/jdbc/LockJDBCContainer.java
===================================================================
---
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/lock/jbosscache/jdbc/LockJDBCContainer.java 2010-02-08
07:35:26 UTC (rev 1710)
+++
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/lock/jbosscache/jdbc/LockJDBCContainer.java 2010-02-08
08:38:18 UTC (rev 1711)
@@ -84,7 +84,7 @@
}
finally
{
- if (jdbcConn != null)
+ if (jdbcConn != null && !jdbcConn.isClosed())
{
try
{