Laird Nelson wrote:
>
> [EMAIL PROTECTED] wrote:
> > I do not know, how to downcast an EJB. If I have a BaseEJB and a DerivedEJB how
> > can I downcast a BaseEJB to a DerivedEJB? Has anyone a solution?
>
> You mean if you get back a collection of Person objects and you happen
> to know that one of them is really a SmartPerson object how do you do
> this downcast?
>
> Answer: you cannot. This is what is meant in the specification, I
> *think*, by component inheritance. You will note that it is not
> supported. This is a specification error, IMHO.
I would have thought that PortableRemoteObject.narrow would be required to work
in this case. But I wouldn't mind hearing the official position on this. Perhaps
it is only required that this work when narrowing the home reference returned
by a JNDI lookup.
________________________________________________________________________________
Evan Ireland Sybase EAServer Engineering [EMAIL PROTECTED]
Wellington, New Zealand +64 4 934-5856
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".