Re: DataContextPool

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Tue May 03 2005 - 18:34:14 EDT

  • Next message: Dhruti Ramani: "about Ordering in Cayenne"

    > Thanks Cris. That was very interesting.
    > It seems i have to get more involved with Cayenne interna.
    >
    > sastan

    I guess in this particular case you just need to know that DataContext is
    a stateful object. It is akin to a web session - i.e. something that
    naturally belongs to a single user and shouldn't be pooled. You can have
    shared DataContexts for read-only config data, but suggested patern to use
    such data is to pull it to a session DataContext first:

      http://objectstyle.org/cayenne/userguide/datactxt/moving-objects.html

    Andrus



    This archive was generated by hypermail 2.0.0 : Tue May 03 2005 - 18:34:16 EDT