Mimicking the J2EE filter chain
Mimicking the J2EE filter chain
- Subject: Mimicking the J2EE filter chain
- From: Michael Gargano <email@hidden>
- Date: Wed, 23 Mar 2011 14:22:31 -0700
- Acceptlanguage: en-US
- Thread-topic: Mimicking the J2EE filter chain
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