You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@aries.apache.org by Tom Leung <to...@gmail.com> on 2013/04/30 12:43:26 UTC
Will any exception happened will rollback the declarative transaction?
Will any exception happened will rollback the declarative transaction?
The other container like EJB only rollback declarative transaction if RuntimeException is encountered.
Any suggestion is welcome
Best Rgds,
Tom
RE: Will any exception happened will rollback the declarative
transaction?
Posted by Timothy Ward <ti...@apache.org>.
Hi Tom,
Blueprint declarative transactions follow the same rules as EJB transactions. A declared (checked) exception is defined as a "normal" return from the method and does not trigger a rollback.
Regards
Tim Ward
-------------------
Apache Aries PMC member & Enterprise OSGi advocate
Enterprise OSGi in Action (http://www.manning.com/cummins)
-------------------
> Subject: Will any exception happened will rollback the declarative transaction?
> From: tocsleung@gmail.com
> Date: Tue, 30 Apr 2013 18:43:26 +0800
> To: user@aries.apache.org
>
> Will any exception happened will rollback the declarative transaction?
>
> The other container like EJB only rollback declarative transaction if RuntimeException is encountered.
>
> Any suggestion is welcome
>
> Best Rgds,
>
> Tom
>
>