Rahman,

Your bean class needs a method String hello(String i){...}

Jay Wagner
Sybase Inc.

-----Original Message-----
From: Rahman, Zahid [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 10:00 AM
To: [EMAIL PROTECTED]
Subject: Calling methods



  Session Bean

  interface  HelloWorld
  method  String hello(String i)

 Class      HelloWorldBean
 method    String Hello(){ .....}

Interface          HelloWorldHome
only method     create();


       ////   JSP Client Code
         String output;
     String Input = "Send and Receive";

    InitialContext ctx = new InitialContext();
    Object objref = ctx.lookup("HelloWorld");
    HelloWorldHome helloworld = (HelloWorldHome)PortableRemoteObject.narrow
    (objref,HelloWorldHome.class);
    Output = helloworld.hello(Input);

Using the above client code in my JSP I get an error to the effect  that
HelloWorldHome interface doesn't have a hello method.
which I agree with because it doesn't. However can you tell me how I can
call the hello method and more importantly how can
I get an instance of HelloWorld  class without  calling the create or
finder
method of the HelloWorldHome first.

Thank You

Regards,
Zahid

©2001, Logsys Solutions Ltd.
This message and any attachments is intended for the stated recipient only
and in no way constitutes a binding contractual agreement, order, or
commitment by Logsys Solutions Limited WHO ARE NOT TO BE BOUND BY ANYTHING
CONTAINED HEREIN. If you have received this message in error, please return
it to the sender, indicating such and then delete and destroy all copies in
your possession.

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