I have a strange problem with EJBs. I use 2 AppServers. Bean A is
deployed to Appserver 1, and Bean B is deployed to Appserver 2. A
client connects to Bean A, which looks up Bean B (like an ordinary
client, no ejb-ref, or ejb-link!). The lookup is succesful. Bean A
tries to return the reference of Bean B's home interface to the
client. But it fails! When I try to cast the returned EJBHome to the
specific Home Interface Class, I got a ClassCastException...
I found that the returned stub object is javax.ejb._EJBHome_Stub
instead of the proper stub. Strange, because the toString() method
shows correct class type...
What can be wrong? By the way, I am using BAS4.5.1 and JBuilder5.
Thanks,
Ferenc