As I understand it, both constructors are useful. For instance, in EJB code,
i.e. entity and session beans, should use the empty contructor, as this allows
the InitialContext parameters to be established by the container, and makes for
more portable code.
For servlets, where InitialContexts are established per request, and often
with different credentials, it is quite necessary to use the constructor that
accepts a Properties argument.
tim.
> 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?
===========================================================================
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".