Re: Store an object for a Rest request
Anil Bajaj <[email protected]> Wed, 8 May 2013 11:05:07 -0700
| Newsgroups | gmane.comp.web.webobjects.wonder-disc |
|---|---|
| Message-ID | <[email protected]> |
I guess you're right, if each request runs in it's own thread then yeah, ERXThreadStorage would be all that I need. I incorrectly assumed that we needed a session for that. Thanks, Anil On May 8, 2013, at 10:49 AM, Chuck Hill <[email protected]> wrote: > Is there a reason that you can't use ERXThreadStorage? > > Chuck > > > On 2013-05-08, at 10:36 AM, Anil Bajaj wrote: > >> Is there a way to store an object for a rest request which can then be used in an Entity, something similar to ERXThreadStorage which works for a particular thread/session. >> >> Basically I want to store the User object for a request, and then use in in some Entity accessor methods. >> >> I thought of using ERXRestContext but there doesn't seem to be any way to get to that from the entity. >> >> Thanks, >> >> Anil >> ------------------------------------------------------------------------------ >> Learn Graph Databases - Download FREE O'Reilly Book >> "Graph Databases" is the definitive new guide to graph databases and >> their applications. This 200-page book is written by three acclaimed >> leaders in the field. The early access version is available now. >> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may >> _______________________________________________ >> Wonder-disc mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/wonder-disc > > -- > Chuck Hill > Executive Managing Partner, VP Development and Technical Services > > Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. > http://www.global-village.net/gvc/practical_webobjects > > Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing Companies in B.C! > Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of Canada’s Fastest-Growing Companies by PROFIT Magazine! > > > > > > > > > > > ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may