cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gentry, Michael \(Contractor\)" <michael_gen...@fanniemae.com>
Subject RE: accessing cayenne sessions
Date Wed, 05 Apr 2006 14:10:28 GMT
Andrus, would this work for more complex data models?  I have 6
DataDomains in mine.  :-)


-----Original Message-----
From: Andrus Adamchik [mailto:andrus@objectstyle.org] 
Sent: Wednesday, April 05, 2006 4:00 AM
To: cayenne-user@incubator.apache.org
Subject: Re: accessing cayenne sessions



On Apr 5, 2006, at 2:36 AM, Cypher her wrote:

> public class MyBasePage extends BasePage
> {
>
>    public DataContext getDataContext()
>    {
>        return DataContext.getThreadDataContext();
>    }
> }
>
> and all of  my pages should subclass MyBasePage. And I am assuming  
> Tapestry and the servlet container will take care of making sure  
> the Session is consistent throughout the workflow i.e. each user  
> gets a unique DataContext and they maintain the same DataContext  
> from page to page until the session times out..

Yep, HttpSession is a servlet container feature. It just works.

Andrus


Mime
View raw message