Laird,
I do not understand why the 'lite' class must throw remote exceptions. Its
not a interface that is subsequently extended by some remote interface going
by the statements
'TeacherLite, a Java class'
'TeacherBean, a Java class which extends TeacherLite'
Please note that the attributes i.e. fields, would need to be declared
public in the lite class so no accessor methods would be typically be
required hence no checked exceptions.
William Louth
Inprise
www.inprise.com/appserver/
-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]On Behalf Of Nelson, Laird
Sent: Tuesday, August 29, 2000 2:33 PM
To: [EMAIL PROTECTED]
Subject: Re: which of these should be an entity bean?
> -----Original Message-----
> The lite classes are "regular" Java classes. In your case, you might
> define something like the following:
>
> 1) TeacherLite, a Java class with attributes for ID, name, and other
> basic info;
> 2) TeacherBean, a Java class which extends TeacherLite, implements
> EntityBean, and adds attributes such as a Vector of Credentials;
> 3) TeacherHome, the home interface for TeacherBean; and
> 4) Teacher, the remote interface for TeacherBean.
The only trick here is that your TeacherLite class/interface has to throw
RemoteExceptions, I think, even though it may not always be used in a
Remote-like context. Just something to bear in mind. And yes, this is more
ammunition for the fact that RemoteException should be a RuntimeException.
:-)
Cheers,
Laird
===========================================================================
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".