Re: Mimicking the J2EE filter chain
Re: Mimicking the J2EE filter chain
- Subject: Re: Mimicking the J2EE filter chain
- From: John Huss <email@hidden>
- Date: Wed, 23 Mar 2011 16:26:08 -0500
See ERXThreadStorage
On Wed, Mar 23, 2011 at 4:22 PM, Michael Gargano
<email@hidden> wrote:
Hi all,
I’m using the Shiro security framework for the project I’m working on. In the framework, the subject (basically the user) is bound to the thread and unbound through the J2EE filter chain. My plan was to just shove this subject object into the Session, but the authors of the framework really suggest binding and unbinding this object to the request thread . The problem is… I have no idea how that would be done in WO. Would I have to override createRequest in Application? I was thinking something like…
createRequest(params…) {
Subject.execute(new Callable() {
public Object call() throws Exception {
super.createRequest(params…);
}
}
}
Any other suggestions? I’m not sure something like this would even work.
Thanks.
-Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden