This was what whiteman gave me and I put this in. now it says the following.

What does "TengahInitialContextFactory" stand for and what should I give it
there. I executed this piece of code like this.

try {
           System.out.println( "Started :" );
           Hashtable env = new Hashtable();

env.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.TengahInitialContextF
actory");
          env.put(Context.PROVIDER_URL,"t3://127.0.0.1:80");
         env.put(Context.SECURITY_PRINCIPAL, "system");
         env.put(Context.SECURITY_CREDENTIALS,"ejbspass");
         Context ctx= new InitialContext(env);
           System.out.println( "Obtained Initial Context :" );
           Object objref = ctx.lookup("MyHell");
           System.out.println( "Obtained Lookup :" );
           HelloHome home = (HelloHome)
javax.rmi.PortableRemoteObject.narrow(objref,HelloHome.class);
           Hello hello = home.create();
           String s = hello.Hello();
           System.out.println(s);

It says...

started
Cannot Instantiate class: weblogic.jndi.TengahInitialContextFactory

Kindly help me on this. I ONCE AGAIN APOLOGIZE IF I AM ASKING BASIC DOUBTS.
BUT, I AM SURE I CAN BUILD ON FROM HERE.
Thnx in advance.
Srinivas.

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