Hi All
I was going tthrough the EJB best practices doc in
http://www-106.ibm.com/developerworks/java/library/j-ejb0924.html
by Brett. He suggests caching the InitalContext object
instances to boost performance. However if I fo to the
javadoc for Context - they clearly say that this :
"A Context instance is not guaranteed to be
synchronized against concurrent access by multiple
threads. Threads that need to access a single Context
instance concurrently should synchronize amongst
themselves and provide the necessary locking."
I am confused as to how caching will work if this is
true!. OR is it that if the only use of Context is to
lookup objects and not to bind objects - then only I
can use caching? My application uses the Context
objects to lookup other objects on the JNDI tree and
not to bind objects - can I use the caching?

thanks
Anamitra

__________________________________________________
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to