> If you do the latter you can place a jndi.properties file
> somewhere in your class path containing the correct entries.
> For weblogic it is something like:
>
> java.naming.factory.initial weblogic.jndi.WLInitialContextFactory
> java.naming.provider.url t3://localhost:7001
>

For Websphere , the InitialContextFactory and Provider URL are

"com.ibm.websphere.naming.WsnInitialContextFactory" and
"iiop://localhost:900" respectively. The reason you might be getting
NamingExceptions is because you are making JNDI lookups via the new
InitialContext() way and not the new InitialContext(Properties prop) way.

You will need to have "websphere.jar" (present in the WAS_ROOT\lib folder)
and also "ibmorb.jar" (present in WAS_ROOT\java\jre\lib\ext) in your
classpath.

Hope this helps.

- Rahul

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