Originally posted by Suman Sarker:
I think you have to cast it right. so, instead of doing
student = (StudentBeanLocalHome)ctx.lookup("StudentBean");
do the following
student = (StudentBean)ctx.lookup("StudentBean");
Originally posted by Georg Joo:
If I make the cast to the remote-home, it is ok (in a JSP File).
But I need the local-home (for create) to add the student to the class.
Context ctx = new InitialContext();
StudentBeanLocalHome student = (StudentBeanLocalHome) ctx.lookup("StudentBean");
Morning came much too soon and it brought along a friend named Margarita Hangover, and a tiny ad.
Free, earth friendly heat - from the CodeRanch trailbosshttps://www.kickstarter.com/projects/paulwheaton/free-heat