xn : " 
                        + i);

                    // Using uncommitted reads to avoid the deadlock, so
                    // null is passed for the transaction here.
                    System.out.println(getName() + " : Found " +
                        countRecords(null) + " records in the database.");</pre>
        <p>
    Having performed this somewhat inelegant counting of the records in the
    database, we can now commit the transaction.
</p>
        <pre class="programlisting">            