Hello Guys,
am using HFEJB, using Weblogic8.1..
First example in HFEJB.
Advice Application
I can able to build & deploy the Advice appln, while am trying to compile and run the client code...am geting error. Here is the 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);
Advice advisor = home.create(); //GETING ERROR HERE(NO TYPE WITH THIS NAME COULD NOT BE FOUND)
System.out.println(advisor.getMessage());
} catch (Exception ex) {
ex.printStackTrace();
}
}
}
am geting error in this line
Advice advisor = home.create(); //GETING ERROR HERE(NO TYPE WITH THIS NAME COULD NOT BE FOUND)
could you please fix it.
Cheers