Uhm - please explain how it would be done? (could be done?) App scoped component : PersistenceManager (PM)
There is therefore only one PM. Request scoped component: HibernateSession (HS) Two requests come in A and B, each with a request scoped component (HS A and HS B) A calls PM.setSession(HS A); B calls PM.sesSession(HS B); A calls PM.save(); Now you're f'ked because request A is using HS B? :) This causes no end of pain as far as I can see. I'm not even sure how you could possibly string them together? Mike On 24/9/03 2:24 PM, "Pat Lightbody" ([EMAIL PROTECTED]) penned the words: > I'd actually like to support this eventually (maybe 2.1). The reason for > this is that most DB-based resources need to be request-scoped, but really > only the DB (ie: Hibernate session) needs to. No reason why everything else > must get dragged down to that level as well. Since WebWork (read: NOT XWork) > can assume that a request scope can map directly to a single session scope, > then this is totally possible (albeit hard). > > -Pat > > ----- Original Message ----- > From: "Jason Carreira" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, September 23, 2003 8:20 PM > Subject: RE: [OS-webwork] Issue with component lifecycle dependencies > > > Umm... Because it's hard? :-) > > You'd have to have things stored in ThreadLocals and re-bound for every > request, I think... > >> -----Original Message----- >> From: Christian Meunier [mailto:[EMAIL PROTECTED] >> Sent: Tuesday, September 23, 2003 11:14 PM >> To: [EMAIL PROTECTED] >> Subject: [OS-webwork] Issue with component lifecycle dependencies >> >> >> Hi, >> >> looking at the doc i see "Note that while components are >> allowed to have >> dependencies on other components they must not depend on another >> component that is of a narrower scope" , is there a good >> reason why we >> have this limitation, there are many good cases where an application >> scoped components could depend on a session scoped/request scoped >> component and it does not look like it's supported at the moment. >> >> Regards >> Christian Meunier >> >> >> >> >> ------------------------------------------------------- >> This sf.net email is sponsored by:ThinkGeek >> Welcome to geek heaven. >> http://thinkgeek.com/sf >> _______________________________________________ >> Opensymphony-webwork mailing list >> [EMAIL PROTECTED] >> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork >> > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork