[ 
https://issues.apache.org/jira/browse/ARIES-1690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15906206#comment-15906206
 ] 

Fabrizio commented on ARIES-1690:
---------------------------------

Same problem (Ignored rollbackOn) on KAraf 4.1.0 Hibernate/5.2.6, Aries JPA 
2.6, and Aries transaction 2.x with pax-jdbc-pool-dbcp2 (XA=true), 
pax-jdbc-postgresql on Postgres 9.6 DB server.
Only RuntimeException (and chield) produce a transaction rollback. Tested also 
on cross service transaction.  

> Ignored rollbackOn element of Transactional annotation
> ------------------------------------------------------
>
>                 Key: ARIES-1690
>                 URL: https://issues.apache.org/jira/browse/ARIES-1690
>             Project: Aries
>          Issue Type: Bug
>          Components: Transaction
>            Reporter: Kevin Vanbockryck
>
> Here is a simple example-method, when I use this the document ends up in the 
> database.
>   @Transactional(value = Transactional.TxType.REQUIRED
>             ,rollbackOn = {Exception.class}
>     )
>     public void store(Document document) throws Exception {
>         entityManager.persist(document);
>         throw new Exception();    
>     }



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to