it says getMessage() is not found in AdviceRemote, this AdviceRemote is created br WLS, so I cant able to declare my business method in this component interface.
Client code
public class AdviceClient {
public static void main(
String[] args) {
new AdviceClient().go();
}
public void go() {
try {
Context ic = new InitialContext();
Object o = ic.lookup("Test1"); // replace with YOUR JNDI name for the bean
AdviceHome home = (AdviceHome) PortableRemoteObject.narrow(o, AdviceHome.class);
AdviceRemote advisor = home.create();
System.out.println("Testing...");
System.out.println(advisor.getMessage());// error getMessage() is not found in AdviceRemote
} catch (Exception ex) {
ex.printStackTrace();
}
}
}