Cayenne, Tapestry and DataContext

From: Oscar Picasso (oscgoogl..ahoo.com)
Date: Sat Nov 05 2005 - 13:46:50 EST

  • Next message: Borut Bolčin: "Re: Cayenne, Tapestry and DataContext"

    Hi,

    I have a Tapestry application with some parts that are stateless and other
    stateful.

    For the stateful part I understand that I need to store a DataContext for each
    user in its visit object.

    But what about the stateless part (no visit object).

    Is it better to provide one new DataContext for each request or store one, for
    example, in the Global object an reuse it?

    Another somewhat related question.

    I have a big potential graph.

    From one object of the graph I can retrieve other objects.

    Does the related DataContext grows each time I retrieve an object from the
    graph with a potential OutOfMemoryException? If that's the case, what is the
    best strategy to avoid this?

    Thanks

    Oscar

    __________________________________________________
    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam protection around
    http://mail.yahoo.com



    This archive was generated by hypermail 2.0.0 : Sat Nov 05 2005 - 13:46:51 EST