Ed Roman gives a suggestion for how to ensure these two interfaces stay in
sync without encountering the problems you describe, in his book Mastering
Enterprise JavaBeans and the Java Platform, 2nd edition, page 102-103.
It's quite simple: Extract the business methods to a base interface, and then
let both your remote EJB interface and your bean implementation extend/implement
the base interface.
Regards,
Jonas
On Thu, 6 Apr 2000, Sripada Srinivas wrote:
> Because it is implemented by EJBObject , which will delegate the business method
> requests from the client to the instance of Entity Bean class.
>
> If entity bean implements remote interface, it has to implement the methods in
> javax.ejb.EJBObject interface also.
>
> Hope it is clear.
>
> Sripada
>
>
>
> Alex Cachia wrote:
>
> > In section 10.2.1 of the EJB spec.
> >
> > "The entity bean class may, but is not required to, implement the entity bean's
> > remote interface."
> >
> > What would be the point of not implementing the remote interface?
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Talk to your friends online 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".
>
> ===========================================================================
> 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".