Sorry typo in my email.

it is my understanding that HelloWorldHome can only have
create and find methods if at all however  in this case I have no row to
insert
or find therefore cannot use one of these methods to instantiate
HelloWorldBean class in the client.

I directly wish to call the hello method in the HelloWorldBean class

Regards,
zahid
> -----Original Message-----
> From: Jay Wagner [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, February 16, 2001 3:23 PM
> To:   [EMAIL PROTECTED]
> Subject:      Re: Calling methods
>
> 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".

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