Hi...
I think there are differences. If you throw EJBException, the session bean
will be evicted from the memory and you're sure that transaction will
rollback. On the other hand, throwing application exception doesn't
guarantee rollback but I think for your case, it will since the exception is
propagated outsite the transactional context. I assume that you have a bean
initiated transaction.
This is what I know. Please do correct me if I'm wrong.
best regards...
Jerson
-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]On Behalf Of Sriram Narayan (CTS)
Sent: Tuesday, September 19, 2000 7:41 PM
To: [EMAIL PROTECTED]
Subject: 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".
===========================================================================
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".