TransactionDelegate and willCommit

From: Aristedes Maniatis (ar..sh.com.au)
Date: Sun Sep 17 2006 - 22:51:18 EDT

  • Next message: Andrus Adamchik: "Re: TransactionDelegate and willCommit"

    We have implemented a TransactionDelegate as per the instructions on
    http://cwiki.apache.org/confluence/display/CAYDOC/Understanding
    +Transactions We are however, finding some problems:

    1. willCommit() appears to run even on a query to the database, not
    just when committing data. But perhaps this is just a naming thing.

    2. We are getting an exception on the line of code "DataContext
    context = DataContext.getThreadDataContext();"

    java.lang.IllegalStateException: Current thread has no bound
    DataContext.

    Under what circumstances can there be a transaction which invokes
    TransactionDelegate but no context at that time?

    Ari Maniatis

    -------------------------->
    ish
    http://www.ish.com.au
    Level 1, 30 Wilson Street Newtown 2042 Australia
    phone +61 2 9550 5001 fax +61 2 9550 4001
    GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A





    This archive was generated by hypermail 2.0.0 : Sun Sep 17 2006 - 22:52:01 EDT