"Lahooti, Hamid" wrote:
> The real problem is with Home interface inheritance. Assume your
> 'Individual' Home interface inherits from 'Party' Home interface.
> The Home interface of an EJB must return an instance of its EJBObject.
> Your 'Party' Home interface returns a 'Party', but what will your
> 'Individual's Home interface return? It needs to return an instance
> of 'Individual', but it can't because that breaks Java inheritance
> rules with regards to method signatures.

Right; got this part.

Now, my only remaining (quite humble at this point, believe me!)
questions are:

1. The specification makes a distinction between component inheritance,
implementation inheritance, and interface inheritance.  None of these
three terms is well defined in the specification.  Nevertheless, the
specification permits the latter two (see page 290).  What kind of
inheritance is the kind you list above, and is your interpretation in
keeping with the specification?

2. Suppose I am able to solve the problem you state above (out of band,
i.e. with my own classes).  Is that the only issue with respect to
various kinds of inheritance in EJB?  I personally cannot think of any
others (other than implementation-type issues, such as lazy- versus
eager-loading of complex object graphs).

I *know* this has been beaten to death in the archives; I've definitely
tried to do my homework, but I've found that even the archives don't
satisfactorily answer my question.  Sorry to take up so much bandwidth
on this issue; I'll be extremely glad when this issue is resolved in the
2.0 specification (it IS going to be resolved in the 2.0 specification,
yes?).

Cheers,
Laird

===========================================================================
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".

Reply via email to