Just a word about this... we're trying to do this in iPlanet, and we had
some problems as our base class implemented EntityBean, so every class
extending this would be an entity bean. If you follow this approach, iPlanet
deploy tool fails because it thinks the class is an entity bean with missing
home and remote interfaces, so we had to move the "implements EntityBean"
into every subclass.
Another question... the spec states no EntityBean should be declared
final... any reason for this????
regards
Jose
-----Mensaje original-----
De: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]En nombre de Victor Langelo
Enviado el: jueves, 09 de noviembre de 2000 20:32
Para: [EMAIL PROTECTED]
Asunto: Re: AW: Cannot inherit methods ... ?
Benjamin Broll wrote:
> > Using interited bean methods (business or otherwise) is not
> > forbidden in the spec. In fact I use them extensively in my
> > beans.
>
> I've got a question regarding the use of oo concepts as well.
>
> If inhertance is permitted, is it as well possible to declare the
super-bean
> abstract so that no instance of that type can be created? I'm asking
because
> I'd like to build an Entity Bean which has behaviour common to several
> Entity Beans which should inherit from this super-bean _but_ the behaviour
> defined therein is not sufficient thus it has to be enhanced by sub-beans.
You can declare the super-bean class abstract.
>
>
> Now since I don't want this bean to be created (because this would create
> invalid data in the database as well) I need a possibility to declare the
> bean abstract. Do you have this possibility with EJB?
Let me elaborate on what Chris Bono said. There would be no need to declare
the
bean component abstract. The bean class doesn't constitute an EJB component
and
doesn't get mapped in the JNDI name space until you write and deploy a
deployment descriptor for the base class. While creating a DD for the case
class
might serve as a template for the DDs of derived classes, there is no need
to
actually deploy the base class.
If someone else were to attempt to deploy the base class, you don't have to
worry about it being created because it is an abstract class.
>
>
> .bbr
>
--Victor
===========================================================================
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".