RE: [JBoss-user] behaviour of a cached initialContext

2002-08-28 Thread Kevin Conner

 And about reusing homes (will JAAS principal be maintained?)

The JAAS principal is not associated with the homes, you can safely
cache them.  The principal is associated with the current thread
when the request is received.  This thread local principal is then
used by the proxy classes when the home (or bean) is accessed.

Kev

Kevin Conner
Orchard Information Systems Limited
Newcastle Technopole, Kings Manor
Newcastle Upon Tyne, NE1 6PA. United Kingdom
Registered in England, Number 1900078
Tel: +44 (0) 191-2032536  Fax: +44 (0) 191 2302515



---
This sf.net email is sponsored by: Jabber - The world's fastest growing 
real-time communications platform! Don't just IM. Build it in! 
http://www.jabber.com/osdn/xim
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] behaviour of a cached initialContext

2002-08-27 Thread Emerson Cargnin - SICREDI Serviços

we have a cache manager that does that for reusable data (using 
refletion),  we haven't solved the notification of change yet, since it 
will have a thousand of web clients (jboss light + tomcat) as the bank 
offices and a slow (delayed)  satelite line.

And about reusing homes (will JAAS principal be maintained?)

Dmitri Colebatch wrote:
 my reading of Scott's answer is that yes, it is ok to cache the Context
 instance.  Thats certainly the way I've always used it - but more
 importantly from a performance pov - you probably want to cache the result
 of your lookups whereever possible (obviously some things wont make sense to
 cache).
 
 hth
 dim
 
 - Original Message -
 From: Emerson Cargnin - SICREDI Serviços [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, August 27, 2002 9:36 AM
 Subject: Re: [JBoss-user] behaviour of a cached initialContext
 
 
 no answers
 
 Emerson Cargnin - SICREDI Serviços wrote:
 
please, could anyone answer me?? I'm afraid of using the same Principal
with diffferent users if i cache it.

Emerson Cargnin - SICREDI Serviços wrote:


my questions are :

1 - can i safe reuse a InitialContext instance among web users without
worring about using the same Principal?

2- Does it works the same for a Stateless Session Bean home ? May I
reuse the same home for two different users?

3- And for a Stateless Session Bean instance???



Scott M Stark wrote:


InitialContext never holds security information. If you put it there you
should not as it is not used by JBoss.


Scott Stark
Chief Technology Officer
JBoss Group, LLC

- Original Message -
From: Emerson Cargnin - SICREDI Serviços [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 23, 2002 1:12 PM
Subject: [JBoss-user] behaviour of a cached initialContext




What's the behaviour of security if I cache the initialContext ?
Will it
cache the principal among diferent remote requests???


--
Emerson Cargnin - MSA
SICREDI - Tel : 3358-4860







---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




 
 
 --
 Emerson Cargnin - MSA
 SICREDI - Tel : 3358-4860
 
 
 
 ---
 This sf.net email is sponsored by: OSDN - Tired of that same old
 cell phone?  Get a new here for FREE!
 https://www.inphonic.com/r.asp?r=urceforge1refcode1=3390
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 
 
 ---
 This sf.net email is sponsored by: OSDN - Tired of that same old
 cell phone?  Get a new here for FREE!
 https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 


-- 
Emerson Cargnin - MSA
SICREDI - Tel : 3358-4860



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] behaviour of a cached initialContext

2002-08-26 Thread Emerson Cargnin - SICREDI Serviços

no answers

Emerson Cargnin - SICREDI Serviços wrote:
 please, could anyone answer me?? I'm afraid of using the same Principal 
 with diffferent users if i cache it.
 
 Emerson Cargnin - SICREDI Serviços wrote:
 
 my questions are :

 1 - can i safe reuse a InitialContext instance among web users without 
 worring about using the same Principal?

 2- Does it works the same for a Stateless Session Bean home ? May I 
 reuse the same home for two different users?

 3- And for a Stateless Session Bean instance???



 Scott M Stark wrote:

 InitialContext never holds security information. If you put it there you
 should not as it is not used by JBoss.

 
 Scott Stark
 Chief Technology Officer
 JBoss Group, LLC
 
 - Original Message -
 From: Emerson Cargnin - SICREDI Serviços [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, August 23, 2002 1:12 PM
 Subject: [JBoss-user] behaviour of a cached initialContext



 What's the behaviour of security if I cache the initialContext ? 
 Will it
 cache the principal among diferent remote requests???


 -- 
 Emerson Cargnin - MSA
 SICREDI - Tel : 3358-4860







 ---
 This sf.net email is sponsored by: OSDN - Tired of that same old
 cell phone?  Get a new here for FREE!
 https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user



 
 


-- 
Emerson Cargnin - MSA
SICREDI - Tel : 3358-4860



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] behaviour of a cached initialContext

2002-08-26 Thread Dmitri Colebatch

my reading of Scott's answer is that yes, it is ok to cache the Context
instance.  Thats certainly the way I've always used it - but more
importantly from a performance pov - you probably want to cache the result
of your lookups whereever possible (obviously some things wont make sense to
cache).

hth
dim

- Original Message -
From: Emerson Cargnin - SICREDI Serviços [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 27, 2002 9:36 AM
Subject: Re: [JBoss-user] behaviour of a cached initialContext


no answers

Emerson Cargnin - SICREDI Serviços wrote:
 please, could anyone answer me?? I'm afraid of using the same Principal
 with diffferent users if i cache it.

 Emerson Cargnin - SICREDI Serviços wrote:

 my questions are :

 1 - can i safe reuse a InitialContext instance among web users without
 worring about using the same Principal?

 2- Does it works the same for a Stateless Session Bean home ? May I
 reuse the same home for two different users?

 3- And for a Stateless Session Bean instance???



 Scott M Stark wrote:

 InitialContext never holds security information. If you put it there you
 should not as it is not used by JBoss.

 
 Scott Stark
 Chief Technology Officer
 JBoss Group, LLC
 
 - Original Message -
 From: Emerson Cargnin - SICREDI Serviços [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, August 23, 2002 1:12 PM
 Subject: [JBoss-user] behaviour of a cached initialContext



 What's the behaviour of security if I cache the initialContext ?
 Will it
 cache the principal among diferent remote requests???


 --
 Emerson Cargnin - MSA
 SICREDI - Tel : 3358-4860







 ---
 This sf.net email is sponsored by: OSDN - Tired of that same old
 cell phone?  Get a new here for FREE!
 https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user







--
Emerson Cargnin - MSA
SICREDI - Tel : 3358-4860



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=urceforge1refcode1=3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user