Re: Extended class

From: Koen Segers (KoenSeger..carlet.be)
Date: Thu Feb 17 2005 - 17:19:35 EST

  • Next message: Mike Kienenberger: "Re: double-clicking and DataContexts bound to the HttpSession"

    On Thursday 17 February 2005 22:36, Mike Kienenberger wrote:
    > Koen Segers <KoenSeger..carlet.be> wrote:
    > > Can I conclude then that cayenne is always thread safe?
    >
    > http://www.objectstyle.org/cayenne/lists/cayenne-user/2005/02/0082.html
    >
    > If you create a summary of everything you find, I'll add it to the FAQ.
    >
    > -Mike

    Summary:
    Cayenne stack underneath DataContext is thread-safe, but DataObjects are not
    by default. A general rule of thumb is to have a single DataContext to serve
    each thread.
    Of the shared resources only the snapshot cache (DataRowStore) is locked
    during commit operations and when fetched objects are registered. Database
    access itself is fully multithreaded, and other than using a connection pool,
    everything is really stateless there.

    I tested it for a static function with jmeter.
    100 threads accessing the same function. (it was login)
    First a wrong password then a correct.
    None of the 100 threads failed an assertion.

    I believe it is thread safe then...

    Greetz

    -- 
    

    Koen Segers

    <koenseger..carlet.be> <http://eddyvite.dyndns.org>



    This archive was generated by hypermail 2.0.0 : Thu Feb 17 2005 - 17:19:50 EST