Steven, 

We are using the forums online at www.jboss.org to answer and post
questions. 

Classify your question and pick the appropriate forum (which would be
security or ejb on the user forums in your case).  That has the benefit
of being posted right here but with the right header so we look at it
and post an answer on the forums.  You get notified by email and we have
a classified trace of everything. 

Thanks for reposting. 

marcf 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Steven Harris
> Sent: Monday, February 09, 2004 2:22 PM
> To: [EMAIL PROTECTED]
> Subject: FW: [JBoss-user] Using ThreadLocal for cache
> 
> I notice that my post is the only one without links. There 
> was a flurry of posts about forums which I conveniently 
> ignored since I was pretty busy. Do I need to post my 
> question elsewhere?
> 
> -----Original Message-----
> From: Steven Harris [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 09, 2004 11:46 AM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] Using ThreadLocal for cache
> 
> 
> We have a client that calls a method on a stateless session 
> bean to act on other beans through local interfaces in a 
> single transaction  We wrote a security SecurityProxy that 
> does instance-based per-method authorization using our own 
> fine grained permissions which are set for the user in the 
> database. This user has done a JAAS login using Client and 
> Database login modules, so in SecurityProxy invoke() we can 
> get his Principal from the EJBContext and we can look up his 
> permissions in the database based on the name of  that 
> Principal.  But we don't want to do this database permissions 
> lookup on every method invocation, so we cache the set of 
> permissions for that user in ThreadLocal the first time our 
> SecurityProxy does an invoke().
> Is it legitimate to assume we will have the same thread 
> through multiple calls to  local bean method invocations 
> throughout this transaction. It seems to work, but are we just lucky?
> 
> 
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004 Premiere 
> Conference on Open Tools Development and Integration See the 
> breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004 Premiere 
> Conference on Open Tools Development and Integration See the 
> breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to