Hi!
Heiko Gottschling wrote:
> Do these helper objects "inherit" the JNDI context of the bean from which
> they are called?
Yes. The JNDI context is considered to belong to the bean, and a helper
class being used by the bean is considered a part of the bean.
> In other words, can every object which is called from a bean
> access the bean's JNDI context?
Yes.
> Where is this behavior specified?
Nowhere AFAIK, but there's no restriction against this either.
> Are there
> any restrictions?
No.
<vendor>
In JBoss the java:comp/env implementation uses the context classloader
(CCL) of the thread to determine what namespace is being accessed. The
CCL is set when the bean is called, and reset when the bean call is
finished. In between all lookups of java:comp/env, or any subcontext
thereof, will be done with the beans local namespace. These calls may be
done by any class, bean or utility class or whatever.
</vendor>
/Rickard
--
Rickard �berg
Email: [EMAIL PROTECTED]
===========================================================================
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".