Diego, I have an article coming out soon on HiveMind at TheServerSide.com and with it you'll be able to download an example project that uses Hibernate with the threaded service lifecycle model. Would it help you if I emailed that to you so that you had an example? It's not that big, as it downloads all of the jars that it needs from Ibiblio. I am going to ask the other committers if they think it should be included as one of the example applications with the HiveMind download. There may be licensing issues. I don't know.
James -----Original Message----- From: Diego [mailto:[EMAIL PROTECTED] Sent: Thursday, March 31, 2005 4:01 AM To: [email protected] Subject: Re: Using Hivemind with cayenne datacontext 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
