I've got some problem while looking up my EJB HomeInterface from whithin a simple WebApp:
ctx = new InitialContext();
IMyHomeInterface home = (IMyHomeInterface)ctx.lookup("IMyHomeInterfaceRemoteJNDI");
This results in a ClassCastException.
The location is valid: I've deployed an .ear before, which contains an EJB-Home-Interface bound to "IMyHomeInterfaceRemoteJNDI".
Trying a LOOKUP in the admin console shows that the actual object at this JNDI location is of type "com.sap.engine.interfaces.cross.ObjectReferenceImpl"- what is this ? How do I get "my" interface from that ?
"PortableRemoteObject.narrow(...)" doesn't help here..
There was a post on this topic before, but I still don't get it 😔
Perhaps it has something to do with my webapp and ejb-references- i don't use Dynpro, just plain JSP right now
Thanks in advance for your help.