You can specify the InitialContextFactory and provider URL in an external
jndi.properties file and put the jndi.properties in a directory that has been
included in the classpath and you can now create an InitialContext using the
no-args constructor. I've been using this for WLS 5.1 without any problem. For
further details, read the JavaDocs for JNDI.
sven wrote:
> I'm currently having a training for Weblogic and am having a discussion =
> with my instructor on obtaining the initial context. I've been using =
> Orion for a while and have some experience with IAS.
>
> In my opinion, the weblogic way of obtaining the InitialContext using =
> the InitialContext(Properties env) constructor is non-portable since =
> deployment on any other Application Server would mean I have to =
> recompile my EJB=B4s and client classes to point to the proper =
> InitialContextFactory and Context.provider.URL. Both Orion and IAS allow =
> to create the initial context using the no-arguments constructor.
>
> Am I reading the specs wrong?
>
> sven
>
> ===========================================================================
> 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".
===========================================================================
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".