Discussions

General J2EE: WSAD (IBM Universal Test Client) problem

  1. WSAD (IBM Universal Test Client) problem (3 messages)

    Hi, I was trying to do a tutorial for WSAD 5.0 but when I started tesing using IBM Universal Test Client, I got this

    EJB References
       HelloWorldSession
        HelloWorldSessionHome
        HelloWorldSession 1
        Method Visibility
        No visible methods
    instead of this :

    EJB References
       HelloWorldSession
        HelloWorldSessionHome
        HelloWorldSession 1
        Method Visibility
          String getFirstName(int)
          String getLastName(int)
          void setFirstName(int, String)
          void setLastName(int, String)

    Could you please help me, I appreciate your help.

    Mark
    majidnakit@yahoo.com

    Threaded Messages (3)

  2. WSAD (IBM Universal Test Client) problem[ Go to top ]

    Hi,

    have you published your methods in your remote interface?

    Andy
  3. WSAD (IBM Universal Test Client) problem[ Go to top ]

    Hi,
    No I did not publish them, and I am a newbie to this, but in the tutorial it does not talk about publishing, here is the link of the tutorial :
    http://www7b.software.ibm.com/wsdd/techjournal/0306_wosnick/wosnick.html

    Please show me how to do it.
    thanks
  4. WSAD (IBM Universal Test Client) problem[ Go to top ]

    Hi,

    okay, this one is a nice tutorial. I also used it for my first steps with Websphere 5.0. But it is not good for you if you are complete new to EJB/J2EE. You should think about reading some general introduction to EJB for your first steps. And take 1 or maybe 2 days without an application server and just read. Good books for beginning are O'Reilly's "Enterprise JavaBeans" or if you are Wiley's "Mastering Enterprise JavaBeans" which has been written by some gurus from TheServerSide.com.
    I still use both books and they are really helpful. If you become a experienced J2EE developer/architect a very good book also is Wrox's "J2EE Design and Development" wriiten by Rod Johnson.

    For your problem:

    Every EJB consists of 3 or 5 (if you are using remote and local) classes/interfaces.
    Every business method in your EJB must be declared in your remote/local interface and must be implemented in your bean class.

    So your remote interface for your session bean must look like this:

    public interface HelloWorldSession extends javax.ejb.EJBObject {
      public String getFirstName(int id) throws RemoteException;
      public void setFirstName(int id, String firstName) throws RemoteException;
      public String getLastName(int id) throws RemoteException;
      public void setLastName(int id, String lastName) throws RemoteException;
    }

    Andy