Hello,
I'm getting following error in Universal Test Client in WSAD 5.0. I really appreciate any help why I'm getting this error.
Results from helloworld.ejb.HelloWorldSession.setFirstName()
Unresolved compilation problem: Class must implement the inherited abstract method helloworld.ejb.HelloWorldSession.setFirstName(int, String)
java.lang.Error: Unresolved compilation problem:
Class must implement the inherited abstract method helloworld.ejb.HelloWorldSession.setFirstName(int, String)
This method is implemented in HelloWorldSessionBean.java
package helloworld.ejb;
import javax.ejb.*;
import javax.naming.*;
import java.rmi.RemoteException;
public class HelloWorldSessionBean implements javax.ejb.SessionBean {
private javax.ejb.SessionContext mySessionCtx;
protected HelloWorldEntity helloWorldEntity = null;
public void setFirstName(int id, String firstName) {
helloWorldEntity = getHelloWorldEntity(id);
try {
helloWorldEntity.setFirstName(firstName);
} catch (RemoteException e) {
System.err.println("Cannot set the first name with the id=" + id);
}
}
}
I'm getting following error in Universal Test Client in WSAD 5.0. I really appreciate any help why I'm getting this error.
Results from helloworld.ejb.HelloWorldSession.setFirstName()
Unresolved compilation problem: Class must implement the inherited abstract method helloworld.ejb.HelloWorldSession.setFirstName(int, String)
java.lang.Error: Unresolved compilation problem:
Class must implement the inherited abstract method helloworld.ejb.HelloWorldSession.setFirstName(int, String)
This method is implemented in HelloWorldSessionBean.java
package helloworld.ejb;
import javax.ejb.*;
import javax.naming.*;
import java.rmi.RemoteException;
public class HelloWorldSessionBean implements javax.ejb.SessionBean {
private javax.ejb.SessionContext mySessionCtx;
protected HelloWorldEntity helloWorldEntity = null;
public void setFirstName(int id, String firstName) {
helloWorldEntity = getHelloWorldEntity(id);
try {
helloWorldEntity.setFirstName(firstName);
} catch (RemoteException e) {
System.err.println("Cannot set the first name with the id=" + id);
}
}
}