Thanks for the reply.  This solution doesn't work for me.  The code that
connects to the server is not mine and I can not change it.  I have to
figure out what is wrong and pass it on, or find an external work around.

Thank you,
Doug

-----Original Message-----
From: Vinod Vijayaprasad (CTS) [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 08, 2000 12:45 PM
To: [EMAIL PROTECTED]
Subject: Re: NameBasedFailOverHandler


Hi Doug,
How are you getting the Context?? Are u saying Context ctx=new Context()...
if so try using the following function instead to get the Context


static public Context getInitialContext() throws Exception
{
    String url="t3://localhost:7001";    /*Your Machine name*/
    String user=null;
    String password=null;

     Properties p = new Properties();

p.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.T3InitialContextFactory
");
     p.put(Context.PROVIDER_URL, url);
     if (user != null)
    {
       System.out.println ("user: " + user);
       p.put(Context.SECURITY_PRINCIPAL, user);
       if (password == null)
         password = "";
       p.put(Context.SECURITY_CREDENTIALS, password);
     }
     return new InitialContext(p);
   }



Hope this helps....

Bye
Vinod

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

Reply via email to