Your article on EJB development a,
December 30, 2006 at 11:46 PM
Your article on EJB development and deployment is very good, simple and easy to understand for the beginers like me. I tried program in part-3 (Hello world using EJB and Servlet). I am getting "ClassCastException" on the line: "testSessionBean = (MyTestSessionHome)PortableRemoteObject.narrow(objref,MyTestSessionHome.class);". I tried a lot to get the program right but couldn't get it. I referred some books too, they also say the same thing as you.
Analysis of objref shows, though it implements MyTestSessionHome, is not an instance of later, but it's an instance of EJBHome. Actually both must be true.