> I have two session bean X,Y which do some database operation.And in my
> deployment descriptor I have set transcational attribute as Required, as
> well as transcation type as Container.In this session bean am throwing an
>   new java.rmi.RemoteException() if condition is not satisfied(inorder to
> rollback .Am i right!!).
>   Suppose if anyone dosn't satisfies the condition it throws execption.
>
> I have another M bean which calls the other two
> session bean(X,Y).And in my deployment descriptor I have set transcational
> attribute as Required, as well as transcation type as Container.
>
> If any one of two session bean(X,Y) doesn't satisfies the condition it
> throws exeception.Am caughting in the bean(M)
> and roolbacking like this
>           try{
>                x.method1();
>                y.method2();
>           }
>           catch(java.rmi.RemoteExcveption e){
>                sessioncontext.setRollbackOnly();
>                throws new java.rmi.RemoteException();
>           }
> Am i right....
> But I couldn't achieve the transcation concept.I mean even one gets fails
> other gets committed.
>
> ie Even if y.method2() throws an exception, database operation on
> x.method1() is succedding(committed).
> What should I do inorder to work well.
>
> Anyone help in this regard
> Thanks in advance
> With Regards,
> Vinoth.c

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

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