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