Title: EJBException and setRollBackOnly

Hi,

I have a container managed session bean which calls DAO, and I was wondering why we have to setRollBackOnly once we catch the exception and then throw EJBException. Can I just do setRollBackOnly and not throw EJBException? Will it still roll back the transaction? Or it won't happen until the container catches EJBException. Thank you very much for any help.



**********************************************************************
E-mail sent through the Internet is not secure. Western Asset therefore recommends that you do not send any confidential or sensitive information to us via electronic mail, including social security numbers, account numbers, or personal identification numbers. Delivery, and or timely delivery of Internet mail is not guaranteed. Western Asset therefore recommends that you do not send time sensitive or action-oriented messages to us via electronic mail.
**********************************************************************
=========================================================================== 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