deltaspike-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Porter <lightguard...@gmail.com>
Subject Re: @Transactional usage : how to rollback and equivalent of EJB @TransactionAttribute ?
Date Mon, 07 Jan 2013 15:49:14 GMT
An exception will cause a rollback. IIRC, the @Transactional has the same
info and supports the different modes as @TransactionAttribute.


On Mon, Jan 7, 2013 at 8:03 AM, titou10 titou10
<titou10.titou10@gmail.com>wrote:

> Hi,
> When a method is annotated with @Transactional, what is the best way
> to provoke a rollbak of the transaction?
> Also are their conditions that will automatically provoke a rollback ?
> (like throwing a RuntimeException)
> Also is the an equivalent to the EJB @TransactionAttribute annotation?
>
> I didn't find anything on this in the DS nor in CODI docs
>
> thx
>



-- 
Jason Porter
http://lightguard-jp.blogspot.com
http://twitter.com/lightguardjp

Software Engineer
Open Source Advocate

PGP key id: 926CCFF5
PGP key available at: keyserver.net, pgp.mit.edu

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message