Re: DataContext scope in web apps

From: Bryan Lewis (brya..aine.rr.com)
Date: Mon Mar 27 2006 - 10:45:13 EST

  • Next message: Marie Goutièr: "ProcedureQuery problem"

    Andrus Adamchik wrote:

    > 3. Another possibility - if you never ever carry uncommitted state
    > across requests, you can setup a filter that does
    > DataContext.rollbackChanges() at the end of the request. This is a
    > variation of the request-scope context, only preserving caching
    > benefits.

    We do a similar thing in our Tapestry apps, mimicking what we used to do
    in WebObjects. Every time a new page is requested -- our base Page
    class provides a getPage(name) method -- we do the rollbackChanges().
    We seldom have workflow that spans more than one page.



    This archive was generated by hypermail 2.0.0 : Mon Mar 27 2006 - 10:45:42 EST