Hi
if you have transaction as TX_REQUIRED for your tasks
then if any one of them rollbacks both of them gets rollbacked. i.e either both files
gets
written or none.
i hope this helps you.
bye
Shelly Aggrawal wrote:
> hi,
> I am new to EJB's. Please solve my basic problem regarding transaction rollbacks:
> I have a transaction in which i want to write data to two files: 'personal' and
>'official'.
>
> For the two files i have two different beans.( I know that better design would be
>to have a single bean, but my problem is better illustrated this way)
> Within the client transaction i call create() of 'personal' followed by create()
>of 'official'.
> If the create of 'official' failed because of some reason, the client transaction
>will be rolled back.
> But by this time, ejbstore() of 'personal' would already have been called, which
>will mean that record has been written to the database. In case of rollback will the
>new record written to the 'personal' be deleted or retained.
>
> Sorry for the naive nature of the problem. I would appreciate any kind of help
>that you may have to offer regarding the transactions.
> Thanks.
> Shelly
>
> ===========================================================================
> 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".
--
-----------------------
Suneetha U.V.S
DevelopmentEngineer
[EMAIL PROTECTED]
Pramati Technologies
http://www.pramati.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".