For any system exception, the container will rollback it. For application
exception , its best practice to explicitly say context.setRollbackOnly()

This way you will be sure that Transaction can never commit.

--Ashwani



                                                                                       
                                
                    BOUTTE Sebastien                                                   
                                
                    <boutte@WFINANCE.        To:     [EMAIL PROTECTED]         
                                
                    FR>                      cc:     (bcc: ashwani.kalra/Polaris)      
                                
                    Sent by: A               Subject:     CMP Transactions             
                                
                    mailing list for                                                   
                                
                    Enterprise                                                         
                                
                    JavaBeans                                                          
                                
                    development                                                        
                                
                    <EJB-INTEREST@JAV                                                  
                                
                    A.SUN.COM>                                                         
                                
                                                                                       
                                
                                                                                       
                                
                    12/16/2002 09:31                                                   
                                
                    PM                                                                 
                                
                    Please respond to                                                  
                                
                    BOUTTE Sebastien                                                   
                                
                                                                                       
                                
                                                                                       
                                




Hi,

I would like to know if i have to called method setRollBackOnly on session
context
when i want to rollback current transaction or rethrow the exception to the
container, and let it do the rollback ?

Thanks

S�bastien Boutt�




Ce message est prot�g� par les r�gles relatives au secret des
correspondances ; il peut en outre contenir des informations � caract�re
confidentiel ou prot�g�es par diff�rentes r�gles et notamment le secret des
affaires ; il est �tabli � destination exclusive de son destinataire. Toute
divulgation, utilisation, diffusion ou reproduction (totale ou partielle)
de ce message, ou des informations qu'il contient, doit �tre pr�alablement
autoris�e. Tout message �lectronique est susceptible d'alt�ration et son
int�grit� ne peut �tre assur�e. WFinance et WFinance Conseil d�clinent
toute responsabilit� au titre de ce message s'il a �t� modifi� ou falsifi�.
Si vous n'�tes pas destinataire de ce message, merci de le d�truire
imm�diatement et d'avertir l'exp�diteur de l'erreur de distribution et de
la destruction du message.

This message is protected by the secrecy of correspondence rules ;
furthermore it may contain privileged or confidential information that is
protected by law, notably by the secrecy of business relations rule ; it is
intended solely for the attention of the addressee . Any disclosure, use,
dissemination or reproduction (either whole or partial) of this message or
the information contained herein is strictly prohibited without prior
consent. Any electronic message is susceptible to alteration and its
integrity can not be assured. WFinance and WFinance Conseil declines any
responsibility for this message in the event of alteration or
falsification.. If you are not the intended recipient, please destroy it
immediately and notify the sender of the wrong delivery and the mail
deletion.







This e-Mail may contain proprietary and confidential information and is sent for the 
intended recipient(s) only.
If by an addressing or transmission error this mail has been misdirected to you, you 
are requested to delete this mail immediately.
You are also hereby notified that any use, any form of reproduction, dissemination, 
copying, disclosure, modification,
distribution and/or publication of this e-mail message, contents or its attachment 
other than by its intended recipient/s is strictly prohibited.

Visit Us at http://www.polaris.co.in

Reply via email to