I think you don�t need the line

HelloHome home =
(HelloHome)javax.rmi.PortableRemoteObject.narrow(objref,HelloHome.class);

Because objref already refers to the Home object.
the line
           Hello hello = home.create();
will be
                Hello hello = objref.create();

try this and good luck.

Leonardo MP

-----Original Message-----
From: G. Srinivasa Murthy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 08, 2000 11:41 AM
To: [EMAIL PROTECTED]
Subject: [EJB-INT] Basic Doubt


Guys,

I created a session stateless
bean(Hello.class,HelloHome.class,HelloBean.class), packaged these three into
.jar File and Deployed into the Weblogic 5.1 server with the JNDI Name
"MyHell".
DEPLOYMENT SUCCESSFUL....

In the file HelloClient.java I refer to this JNDI Name ("MyHell") and invoke
a method on the remote Bean. This is the code for Client file.

           try{
           System.out.println( "Started :" );
           Context ctx = new InitialContext();
           System.out.println( "Obtained Initial Context :" );
           Object objref = ctx.lookup("MyHell");
           System.out.println( "Obtained Lookup :" );
           Hello hello = home.create();
           String s = hello.Hello();
           System.out.println(s);
           } catch ( Exception ex ) { }


When I try to run the file, it gives me output as

started
ERROR! Shared Library ioser12 could not be found.

Can someone help me please in this. Its very urgent. What am I doing wrong
here?? Thanks 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".

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