Re: Using ERXThreadStorage

2015-12-16 Thread Chuck Hill
cts-Dev <webobjects-dev@lists.apple.com<mailto:webobjects-dev@lists.apple.com>> Subject: Using ERXThreadStorage Hi list, In our application, we keep the business-logic with the EO-model in a separate framework. Because some of the enterprise objects are region-specific, we need to get

Re: Using ERXThreadStorage

2015-12-16 Thread Benjamin Steiner
Hi René Thanks for the hint with the request-response cycle. We changed it so the ERXThreadStorage.takeValueForKey happens during the awake() of the session. I think there may be a more elegant solution to this, but it seems to work now. Beni > On 16 Dec 2015, at 10:36, René Bock

Re: Using ERXThreadStorage

2015-12-16 Thread René Bock
Hi Beni, it looks like ERXThreadStorage.takeValueForKey (create session) happened not in the same worker-thread than ERXThreadStorage.valueForKey. I only use ERXThreadStorage to share data between objects during a request-response cycle. You may extend EOEditingContext to keep a reference to

Using ERXThreadStorage

2015-12-16 Thread Benjamin Steiner
Hi list, In our application, we keep the business-logic with the EO-model in a separate framework. Because some of the enterprise objects are region-specific, we need to get access to the logged in user(or its region, respectively) with a static method. The problem is that the user is stored