yes that what i found out in the last hour.
exactly that dead end road.
i"m on the archives.
but where there any good answers ? or should i go back to tear up my design?

(please let there be a positive answer)

Jon Tirsen wrote:

> No it won't.
> There are two reasons:
> 1) The ejb-spec says that the create-method must return the
> remote-interface.
> 2) The jls (java language spec) says that a method with signature "A foo()"
> cannot be shadowed by a method "B foo()" even if B is a subclass of A. This
> a very stupid fact, since it is completely type-safe (if B is a subclass of
> A), according to Bertrand Meyers' Design By Contract.
>
> (We've all been down that road. Check the archives for more answers.)
>
> > -----Original Message-----
> > From: A mailing list for Enterprise JavaBeans development
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Hed Bar-Nissan
> > Sent: Sunday, February 20, 2000 1:46 PM
> > To: [EMAIL PROTECTED]
> > Subject: polymorphism implementations with beans. would it work ?
> >
> >
> > i want to have polymorphism with beans.
> >
> > for that i have two beans which their remote interfaces extends a base
> > interface.
> > ( i hope this would work fine. tried with a test demo and it worked o.k
> > my problem is with the creation of the home interface )
> >
> > Another problem is with the creation of the home.
> > A home = (A) obj;
> > after creation i have to do a casting to an interface that all
> > homeinterfaces  extends which contain the ceate().
> >
> > would that work as well?
> > any pitfalls ?
> > is everything i do legal ?
> >
> > hed
> >
> > ==================================================================
> > =========
> > 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".
> >
> >
>
> ===========================================================================
> 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".

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