If I call my deployed ejb from a JSP I get the following class name:- TravelHome_StatelessSessionHomeWrapper3 I should get:-TravelHome It works Ok calling it from a Application but not a JSP. A call via a JSP using the following code:- home = (TravelHome) PortableRemoteObject.narrow( boundObject,TravelHome.class); keeps throwing a class cast Exception.
The following ref some of my code used in the jsp. final String location ="Travel"; TravelHome home = null; Travel remote = null;
Object boundObject=context.lookup(location); String className=""; className=boundObject.getClass().getName(); System.out.println(className); Can anybody please help