getLocalTransaction().begin();
    public synchronized void commit() throws SQLException {        if (isClosed())        {            throw new SQLException("You cannot commit a closed connection.");        }        if (getAutoCommit())        {            throw new SQLException("commit called with AutoCommit true!");        } // end of if ()        try {            if (inTransaction())            {                getLocalTransaction().commit();            } // end of if ()            getLocalTransaction().begin();        } catch(javax.resource.ResourceException resex) {            throw new SQLException(resex.toString());        }    }