Hi all,
I need to do something like this...
public WOResponse dispatchRequest(WORequest) {
session = getWOSession
retrieve / modify values in session
bind some thread local variables
response = super.dispatchRequest()
unbind the tread local variables
return response
}
I was trying to get the session from the request's context, but the context has
not be created at this point. So, there were two ways I was looking at
accomplishing this....
1) call createContextFromRequest() to get a new context followed by
restoreSessionWithID
(this seems like the dicer of the two options)
2) call sessionStore() to retrieve the session store then call
restoreSessionWithID() to get a reference to the session make my reads and
changes
Chuck had mentioned doing this in Session's awake() and sleep(), but the
problem is that I'm trying to unify the WOSession with another framework's
session model, so some of the information I need to restore the other session
resides in the WOSession. The other framework also has a bunch of stuff it
binds to thread local, but everything works off it's own internal utility
classes preventing me from using ERXThreadStorage.
Thanks.
-Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]