Hed,
       What I have got from ur mail is U are creating a remote interface X
which is inheriting from another remote interface Y.
        Now i guess u are also inheriting the home interface X  from home
interface Y. Now once u are inheriting u cannot override the function
signatures of create() belonging to home interfaceY in home interface X. So ur
home interface X consists of its own defined create functions and also the ones
inherited from home interface Y. The home interface Y consists of create
functions returning reference to remote interface Y. Becoz of  the home
interface Y consisting of create functions returning reference to remote
interface Y this model work not work, the bean will not even get deployed. So
there is no quetion of type casting at all arising if bean itself is not
getting deployed. In short u can inherit remote interfaces but dont try to
inherit from home interfaces returning ref. to another type of remote
interface.
If u find any other thing in this regard then pl. inform me.

Prateek.

Hed Bar-Nissan wrote:

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

Reply via email to