Hello.
Sorry for bringing up this old issue..
I have read this thread and talked to Øyvind Harboe about it.
<http://mail-archives.apache.org/mod_mbox/incubator-cayenne-user/
200609.mbox/%
[EMAIL PROTECTED]>
and Mike Kienenbergers solution.
<http://mail-archives.apache.org/mod_mbox/incubator-cayenne-user/
200609.mbox/%
[EMAIL PROTECTED]>
I am binding DataContext to a session via tapestry-3 Visit. This has
not been a problem in my application. Probably as most of the heavy
cayenne use are done via a swing client that does not make parallell
requests. The web-guis that are using tapestry+cayenne are mostly
read only. The read/write stuff are mostly for internal administration.
So I see the following two possible situations:
* One Context per session: Must make sure only one thread are using
the same session at a time. F.eks. by using Mike Kienenbergers filter
that synchronizes on the session-object.
* One Context per thread: Thread safe, but will have to move
objects between Contexts for objects that live longer than a single
request. Can this be done sort of automatically?
- Tore.