DataContext cache WICKET

From: Arnaud Garcia (arnau..magemed-87.com)
Date: Mon Sep 07 2009 - 11:18:13 EDT

  • Next message: Andrey Razumovsky: "Re: DataContext cache WICKET"

    Hi list,

    I am using cayenne and wicket, and I found no example to integrate
    both framework....

    well, just a question of design for using the datacontext...

    Is it ok to use the datacontext in a singleton like this for a webapp

     private MyFacade() {
            ctxt = DataContext.createDataContext("DOMAIN1");
        }
    => I ask this question since I saw on the documentation for webapp to
    use a getThreadDataContext ??

    2/ About cache strategy...

    I have a big request on oracle, so I decided to use the
    QueryCacheStrategy.LOCAL_CACHE, but each time I refresh the webpage
    the request it always done...

    Is it because I didn't use correctly my datacontext ? do I have to
    create a new one each time using createDataContext ?

    thanks for help

    arnaud



    This archive was generated by hypermail 2.0.0 : Mon Sep 07 2009 - 11:18:56 EDT