Yeah, that exact behavior is what I'd hope to _transparently_ do whenever a session scope depended on a request scope.
-Pat ----- Original Message ----- From: "Peter Donald" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "os-ww" <[EMAIL PROTECTED]> Sent: Wednesday, July 09, 2003 1:13 AM Subject: Re: [picocontainer-dev] FW: [OS-webwork] webwork in a cluster > On Wed, 9 Jul 2003 04:56 pm, Pat Lightbody wrote: > > Proxies may not be a bad thing. I'm still waiting to see proxies used to > > allow for reverse-scope support (session depends on request). > > It is possible but not pretty ;) I would not recomend doing it as it has > confused the hell out of a whole bunch of peeps I have worked with and none > of them where amateurs. The way to do it is to create a "Redirector" proxy at > the session level that essentially grabs the smaller scoped resource and then > delegates to that. > > So say you had a service "Bamboozler". You would create a BamboozlerRedirector > proxy and place it in session scope, anytime anything is invoked on the > service it looks up the request scope Bamboozler and delegates to that > implementation. > > This of course means there must be a way to determine the "lower" level scoped > service (usually done by storing the Request scoped service in a ThreadLocal. > > -- > Cheers, > > Peter Donald > *------------------------------------------------------* > | An expert is someone who knows everything about the | > | topic except for its place in the world. | > *------------------------------------------------------* > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Parasoft > Error proof Web apps, automate testing & more. > Download & eval WebKing and get a free book. > www.parasoft.com/bulletproofapps > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing & more. Download & eval WebKing and get a free book. www.parasoft.com/bulletproofapps _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
