Hello Huyong !

>All,
>  I am a newer of EJB.I don't understand Entity EJB well.My quetion is
>: Is the database relating to the EJB a partion of EJB?

First - Entity Beans are not automatically related to a database !! Although
in the most examples, which represents entity beans the persistent storage is
a database.....

An entity bean is a representation of persistent data, but there is no
restriction that the persistence mechanism is only a database. Also a file
could represent persistent data, or other persistent mechanism.

The main difference between session and entity beans is, that entity beans
dont contain business process logic - they model data.
Session beans handle the business processes.

If a session bean is destroyed, normally (forget for a moment the states) all
the data related to this bean is also destroyed. But if an entity bean is
destroyed, all the data is still alive in the persistent storage.

wfg
Roland

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