i am trying to look up a EJB in my REST Service. Both deployed on the same server. The problem is that i am getting a Object of Type Proxy from the lookup method and can't cast it to the needed Bean Class. Any ideas?
Here the code:
//This returns the Proxy Object?!
Object obj = new
//Class cast excpetion here!
BPMFacadeBeanSimplifiedRemote myBean = (BPMFacadeBeanSimplifiedRemote) PortableRemoteObject.narrow(obj, BPMFacadeBeanSimplifiedRemote.class);
Thanks for help!