application scope for a datacontext ?

From: Julien Vignali (
Date: Fri Mar 04 2005 - 10:18:17 EST

  • Next message: Andrus Adamchik: "Re: error when run! What can I do?"

    Hi there!
    I am currently developing a web application using Cayenne that makes
    read-only accesses to a database, with a Level 1 caching (no cache sharing).
    I am thinking about a way to have only one DataContext serving only one
    ObjectStore so every user would then benefit from everybody's past

    Is it possible and a good idea to change a Session-Bound DataContext to
    an Application-Bound DataContext or should I stick to session-bound
    datacontexts ?
    If yes, how can I do it and is it thread-safe? How to prevent the cache
    from growing infinitely?

    Also, our database will also be frequently updated by other
    applications... How can the datacontext be aware of those changes?

    Thanks in advance...

    Julien Vignali

    S.I.M. - Unité d'Imagerie Numérique Hôpitaux Universitaires de Genève Rue Micheli-du-Crest 24 1205 Genève SUISSE ---------------------------------------

    This archive was generated by hypermail 2.0.0 : Fri Mar 04 2005 - 10:18:24 EST