RE: accessing cayenne sessions

From: Gentry, Michael \(Contractor\) ("Gentry,)
Date: Tue Apr 04 2006 - 10:45:29 EDT

  • Next message: Andrus Adamchik: "Re: accessing cayenne sessions"

    Yes, but using Tapestry you can have a common superclass for your pages
    that provides a getSession() method and it works transparently. You
    don't need to think about Http*.

    /dev/mrg

    -----Original Message-----
    From: Mike Kienenberger [mailto:mkienen..mail.com]
    Sent: Tuesday, April 04, 2006 10:26 AM
    To: cayenne-use..ncubator.apache.org
    Subject: Re: accessing cayenne sessions

    On 4/4/06, Cyp her <cypher6..otmail.com> wrote:
    > * Are there any convenient methods for accessing the Session like in
    > WebObjects where there is a session class in the application?

    In servlets, there's an HttpSession object that you can pull out of
    the HttpServletRequest. Instead of being a subclassable object, it
    instead holds references to a Map (think NSDictionary) where you can
    store objects the entire session. How you get a reference to your
    HttpSession object depends on the framework.

    http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/http/Http
    Session.html



    This archive was generated by hypermail 2.0.0 : Tue Apr 04 2006 - 10:45:54 EDT