Hi,
I makes some difference, since EJBException inherits from RuntimeException,
and thus it is a system exception (which will automatically cause a
rollback).
/Kaj
~~~~~~~~~ ~~~~ ~~~ ~~ ~ ~ ~ ~
[EMAIL PROTECTED]
+46 70 4200148
> -----Original Message-----
> From: Sriram Narayan (CTS) [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, September 17, 2000 1:19 PM
> To: [EMAIL PROTECTED]
> Subject: embedding application exceptions inside EJBException
>
>
> Hi
> I have a method in a SSB that updates a single table using JDBC.
> If the method fails because of a Unique Constraint violation,
> i throw an
> application exception - MyAppX, to the calling servlet.
> In this case, where only one db operation is involved, will it make a
> difference if i embed MyAppX inside an EJBException before
> throwing it to
> the servlet?
> Related discussions on this list seem to answer 'no' to the
> above question.
>
> Could u pls confirm this for me.
> thanks
> sriram
> Cognizant Technology Solutions - Pune.
>
> 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".
>
> ==============================================================
> =============
> 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".
>
===========================================================================
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".