Hi,

Considering the same scenario that is: A method meth1 in Bean A is executing
with Required Tx attribute. Its makes a call to method meth2 in Bean B which
has RequiresNew Tx Attrubute.

Now, if there is an error in meth1 ( requiring a rollback ) at some point
after successful completion of meth2, meth2 is not Rollbacked back.

But, had the transactions been nested, meth2 would also have got rolled
back.

Please confirm if my interpretation is right .. and also correct me if I am
wrong

Regards
Shelly.

> -----Original Message-----
> From: Inderjit Singh Kalsi [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 30, 2001 2:58 PM
> To: [EMAIL PROTECTED]
> Subject: Nested Transaction & Requires Attribute
>
>
> Consider this scenario.
>
> A method meth1 in Bean A is executing with Required Tx attribute.
> Its makes a call a call to method meth2 in Bean B which has
> RequiresNew Tx
> Attrubute.
>
> I understand that Transaction for meth1 is suspended and New
> TX is started
> for meth2 in Bean B.
> How different is this from Nested Transaction?
>
> Practically speaking what happens, is BeanA notified of
> rollback in BeanB?
> If not, than 2 TX are running independently of each other
> which is similar
> to Nested Transactions.
>
> Please throw some light.
>
> If possible please share your opinion with examples.
>
> I appreciate your help.
>
> Thanks
> Inder.
>
> ==============================================================
> =============
> 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".
>
This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message. Any unauthorised review, use, disclosure, 
dissemination, forwarding, printing or copying of this email or any action taken in 
reliance on this e-mail is strictly prohibited and may be unlawful.
Visit us at http://www.cognizant.com

Reply via email to