EJB fully supports interface inheritance in definition of an EJB remote
interface.

Sometimes this is confused with 'component inheritance' which EJB does
not define.

Frank Gates wrote:
>
> Hi,
>
> One of our clients wishes to use Remote interfaces that extend a second
> interface to EJBObject.  For example,
>
> public interface someRemote extends javax.ejb.EJBObject,
> someOtherInterface
> {
> ...
> }
>
> The reason is that they want to install two or more Beans with the
> common interface (someOtherInterface) so that they may use that other
> interface to cast the Remote object returned by the create() methods.
>
>         someOtherInterface remote = (someOtherInterface) homeBeanA.create ();
>         remote.doSomething ();
>         someOtherInterface remote = (someOtherInterface) homeBeanB.create ();
>         remote.doSomethingElse ();
>
> In searching the spec I cannot see that this use of interfaces is
> allowed for Remote interfaces.  But I also see no clear statement
> forbidding it either.  This might also be a container-specific issue.
>
> Opinions?
>
> Thanks,
>
> Frank Gates
> Interactive Business Solutions, Inc.
>
> ===========================================================================
> 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