• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Mimicking the J2EE filter chain
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Mimicking the J2EE filter chain (From: Michael Gargano <email@hidden>)

  • Prev by Date: Mimicking the J2EE filter chain
  • Next by Date: Re: Mimicking the J2EE filter chain
  • Previous by thread: Mimicking the J2EE filter chain
  • Next by thread: Re: Mimicking the J2EE filter chain
  • Index(es):
    • Date
    • Thread