Re: CayenneRunTimeException when it's sent several requests quickly

From: Eric Schneider (eri..entralparksoftware.com)
Date: Mon Mar 15 2004 - 13:31:11 EST

  • Next message: Mike Kienenberger: "Re: CayenneRunTimeException when it's sent several requests quickly"

    Jorge,

    Can you further describe behavior of the web application. Are you sure you
    are using only one data context object to commit changes? Is the data
    context a session scope variable? What presentation framework are you
    using?

    e.

    ----- Original Message -----
    From: "Jorge Sopena" <jsopen..idsa.es>
    To: <cayenne-use..bjectstyle.org>
    Sent: Thursday, April 15, 2004 12:26 PM
    Subject: CayenneRunTimeException when it's sent several requests quickly

    > Hi,
    >
    > I've got a web application using Cayenne as the persistence engine.
    > Apparently everthing goes rigth when I send request one by one.
    > But I'm testing the performance of my app, and I send several requests
    > quickly.
    > All the requests are proccesed but some of the produce this error:
    > CayenneRuntimeException.
    > "Cannot set object as destination of relationship customer
    > because it is in a different DataContext"
    >
    > When does this error happen?, and what could it be the cause?
    >
    > Any hint,
    >
    > Thanks
    >
    > Jorge



    This archive was generated by hypermail 2.0.0 : Mon Mar 15 2004 - 13:30:41 EST