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