The spec permits Entity Remote and Home interface
inheritance.
At the same time the spec states (in section 9.2.8)
that the return
type for Home finder methods must be the entity bean's
remote interface
type (for single-object finders).
If I have a base Remote interface - BaseRemote, and
base Home interface
- BaseHome, can BaseHome define a finder method with
the return type of
BaseRemote?
E.g.:
public interface BaseRemote
{
    ...
}
public interface BaseHome extends EJBHome
{
    BaseRemote findEntity( String aArguments );
}

public interface MyConcreteRemote extends BaseRemote
{
    ...
}

public interface myConcreteHome extends BaseHome
{
    MyConcreteRemote findByPrimaryKey( MyConcreteKey
aKey );
}

public class MyConcreteBean implements EntityBean
{
     MyConcreteKey  ejbFindEntity( String aArguments )
{...};

     MyConcreteKey  ejbFindByPrimaryKey( MyConcreteKey
aKey ) {...}
    ...
}

The described above scenario works in Visual Age fo
Java (VAJ) and
WebSphere, no runtime or deployment errors are
reported.
Please let me know whether this scenario is valid and
compliant with
the Spec.
I am also wondering whether this scenario will work in
new releases of
VAJ and WebSphere.

Thank you in advance.
-Yelena.


__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/

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