Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Returning a looked-up EJB to a client

1 view
Skip to first unread message

Ferenc Aranyi

unread,
May 2, 2002, 8:23:20 AM5/2/02
to
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

0 new messages