diff --git a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/AbstractJDBCSeq.java b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/AbstractJDBCSeq.java index de0886da3..6c82beb4b 100644 --- a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/AbstractJDBCSeq.java +++ b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/AbstractJDBCSeq.java @@ -184,9 +184,8 @@ public abstract class AbstractJDBCSeq // The seq is part of the business transaction however we need // to decrement the ref count so that the connection may be // closed appropriately. - if(conn instanceof RefCountConnection) { try { - ((RefCountConnection)conn).close(); + conn.close(); } catch(SQLException se) { throw SQLExceptions.getStore(se);