Re: user-defined transactions

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Thu Apr 26 2007 - 07:52:54 EDT

  • Next message: Giulio Cesare Solaroli: "CayenneDataObject missing from 2.0.2 cayenne-client-nodeps.jar"

    On Apr 26, 2007, at 1:04 PM, Jens Mayer wrote:

    > (Here is the first question: is it possible to bind two different
    > transactions to the same thread?)

    No you can't.

    > I am accessing two different db-schemas at the same time, using two
    > DataDomains, one for each schema.
    > Now I want to update data (synchronously) on both schemas with my
    > own user-defined transaction-scope.

    You can use just one... Normally it should not matter whether domain1
    or domain2 created a transaction, or you did it manually. If it is
    bound to an execution thread, Cayenne will figure out how to add all
    JDBC connections to this single transaction.

    Andrus



    This archive was generated by hypermail 2.0.0 : Thu Apr 26 2007 - 07:53:17 EDT