Originally posted by Mark Spritzler:
Also, with Remote lookups you do not need to use PortableRemoteObject.narrow
However, I got ClassCastException in my action class when trying to cast the bean to its local/remote interface type
I guess, you meant with local lookups, we dont require the PortableRemoteObject.narrow call.
Originally posted by Mark Spritzler:
He is using EJB 3.0 so I meant for remote you do not need PortableRemoteObject.narrow calls anymore.
Mark
Originally posted by Tong Wang:
I tried casting it directly to the remote interface without using PortableRemoteObject.narrow(), but I still got the ClassCastException.
Originally posted by Tong Wang:
I got the same exception even without using PortableRemoteObject.narrow and doing the casting directly. The jndi name seems to be fine, because I can see it in the jmx-console's JNDIView.
I packed the interface classes into the WAR and interface and bean classes into the ejb-jar