Hi Sriram,

It will make a differens if you embed your MyAppX within an EJBException.
EJBException is a subclass of RuntimeException, and hence it is an system
exception.
Your transaction will automatically be rolled back, and your ejb instance
will be discarded when you throw the system exception.
That is, you will lose all information stored within the SSB.

/Kaj

~~~~~~~~~ ~~~~ ~~~ ~~ ~ ~  ~   ~
[EMAIL PROTECTED]
+46 70 4200148


> -----Ursprungligt meddelande-----
> Fr�n: Sriram Narayan (CTS) [mailto:[EMAIL PROTECTED]]
> Skickat: Tuesday, September 19, 2000 1:41 PM
> Till: [EMAIL PROTECTED]
> �mne: Re: embedding application exceptions inside EJBException
>
>
> ...Reposting in the hope of getting some answers.
> pls do respond even if u feel this is a naive question.
> 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
> 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".

Reply via email to