Mark Galbreath wrote:

> I can find no help in the JRun 3.1 docs for establishing the initial context
> in a servlet accessing an EJB entity bean.  The code compiles:
>
>     public static Context getInitialContext() throws
> javax.naming.NamingException {
>         Properties p = new Properties();
>         p.setProperty( Context.INITIAL_CONTEXT_FACTORY, "ContextFactory");

Don't know JRun but afaik your "ContextFactory" should be the fully qualified
classname.
In Beas Weblogic you also must provide:
env.put(Context.SECURITY_PRINCIPAL, "principal");
env.put(Context.SECURITY_CREDENTIALS, "password");

Peter

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to