Thanks, I tried the threaded model, but it didn't work for me. The
CayenneService was call from different threads in tapestry. So I think
I will store the DataContext in the visit when its created and pass it
to the service that need it.

Regards
Diego 


On Wed, 30 Mar 2005 13:43:41 -0300, Marcus Brito <[EMAIL PROTECTED]> wrote:
> On Wed, 30 Mar 2005 12:14:57 +0200, Diego <[EMAIL PROTECTED]> wrote:
> > Should I use a Threaded Service Model or a Pooled Service Model to realize 
> > this?
> 
> I'm not familiar with Cayenne, but ff Cayenne DataContexts are
> anything like Hibernate Sessions, yes, a threaded service model is
> what you want. This will create and bind a new object the first time
> it's asked for, and will return the same object in subsequents lookups
> within the same thread.
> 
> -- Marcus Brito
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to