Hey

Smita Srivastava wrote:
> When initialContext() is called with no parameters (no environment
> specifically) when a bean references another bean, then where is the
> name of the INITIAL_CONTEXT_FACTORY picked up from? Is it set in an
> application resource file (jndi.properties in the java.home/lib
> directory?)
>
> If it is set as a system property, would the bean developer explicitly
> set the System property from the environment property specified
> earlier, before calling initialContext()?  E.G:

You can be pretty sure that the server has set this up already upon
server start (in either System properties or application resource
properties. see InitialContext javadoc), but OTOH I have not seen this
mandated in the spec anywhere. It should be, as it makes life easier,
and we want that.

/Rickard

--
Rickard �berg

@home: +46 13 177937
Email: [EMAIL PROTECTED]
Homepage: http://www-und.ida.liu.se/~ricob684

===========================================================================
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