hello,

this is my first message to the list, I'm new at Java and I'd like to
experiment the EJB's.
I work with VisualAge for Java (IBM) in the Websphere Test Environment.

I've created an EJB group, MyHelloWorldGroup; an EJB (session),
MyHelloWorldBean and an access Bean,
MyHelloWorldAccessBean.

I'd like to create a client class "MyHelloWorldClient" to test my EJB.
Here is the main method of this class:

public static void main(java.lang.String[] args)

{
     try
     {
          String beanResult = null, ch = null;
          ch = "lalalala";
          MyHelloWorldAccessBean bAcces = null;
          beanResult = bAcces.hello(ch);      //hello(String param) that
only returns
                                         //param is a remote method of my
EJB.

          System.out.println("Retour de Bean Session: " + beanResult);
     }
     catch(Exception e)
     {
          System.out.println("Erreur: " + e.getMessage());
     }
}

This code doesn't work, I don't understand why it opens the debugger with
the insert:

 beanResult = bAcces.hello(ch (java.lang.String) lalalala);

Could someone help me please...

Thanks.

David.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to