This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi, I have been trying to find out what exception is thrown when an EJB which supports only local interfaces is invoked by a non-local client. In WebLogic 6.1, I deployed my EJB in a particular application - myapp and tried to access the EJB from a jsp running in DefaultWebApp. Both are running on the same server...myserver. The lookup succeeds, but when I try to cast the object to the local interface it throws a ClassCastException. The same cast written in a local client succeeds. Can someone explain this? Also what is the required behaviour of the container when a local EJB is accessed by a remote client?