Hi

I'm pretty new to EJB (as this posting will prove) but I have read up a bit
about them and I think I understand most of the basic concepts.

I'm having a problem understanding a bit of the logic with regard to
Entity Beans, specifically the ejbCreate() and the ejbRemove() methods.

Sorry if this goes on a bit, but I want to say how I see it, and I'd
really appreciate it if someone could at least point me to where I can
find a resource that will clear up my misconceptions.

An Entity Bean will usually represent a business object (like a
customer, an account, an order etc) that is usually stored in some
persistent storage location, such as a database. If that's the case, and
this is where I'm getting confused, if the entity already exists (say
customer "Jones"), why would you INSERT another "Jones" into the
database in the ejbCreate() method, and why would you DELETE customer
"Jones" in the ejbRemove() method?

This is what I understand is happening in both of these methods. The
ejbRemove() DELETEs the underlying data not the bean itself, correct?

Please forgive if this is a stupid question, but I can't seem to find an
example anywhere that *doesn't* perform both these operations within the
respective methods I've mentioned. I just can't get my head around why this
would be so. I'm sure I'm missing something incredibly simple, but I would
very much appreciate some elucidation on this.

Any help or pointers very much appreciated

Cheers

DJ
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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