Hi!,
>I posted this question awhile ago, but no reasonable answer
>was given yet.  This has to do with the database doing "ON
>DELETE CASCADE" on database child records.
>
>If a direct delete occurs on the database, the EJB 1.1 spec
>says that the corresponding bean should be removed from the
>container.  But how can this be done ? The database does
>not notify the container if a record was deleted.
>
If someone goes and delete a record in dbms directly, and then you find it
through ejb you will get exception.
DBMS won't tell container anything. All action is initiated by container,
because when you execute find method, as mentioned in OID diagrams in EJB1.1
Client view of Entity chapter, you can find that container go and look in
dbms.
Can you let me know where in the spec it says
>If a direct delete occurs on the database, the EJB 1.1 spec
>says that the corresponding bean should be removed from the
>container.


Punit


______________________________________________________
Get Your Private, Free Email 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