[
https://issues.apache.org/jira/browse/ARIES-1279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14336578#comment-14336578
]
Aleksey Sushko commented on ARIES-1279:
---------------------------------------
I relied on a different mechanism completion of the transaction from the
project aries/transaction/transaction-blueprint.
org.apache.aries.transaction.TransactionAttribute.REQUIRED
{code}
public void finish(TransactionManager man, TransactionToken tranToken)
...
if (man.getStatus() == Status.STATUS_MARKED_ROLLBACK) {
man.rollback();
} else {
man.commit();
}
{code}
And my code
{code}
@Transaction
public void myMethod() {
...
}
{code}
RecoverableDataSource the only way to implement an interface
org.apache.geronimo.transaction.manager.NamedXAResource
Without implementation of the interface does not work log in Geronimo
Transaction Manager.
You can not work with several standard XADataSource.
> Transaction does not work on error SQLException
> -----------------------------------------------
>
> Key: ARIES-1279
> URL: https://issues.apache.org/jira/browse/ARIES-1279
> Project: Aries
> Issue Type: Bug
> Components: Transaction
> Environment: org.apache.aries.transaction.jdbc:2.1.0
> org.apache.aries.transaction.manager:1.1.0
> org.apache.geronimo.components.geronimo-connector:3.1.1
> Reporter: Aleksey Sushko
> Priority: Critical
> Attachments: transaction-itest.zip
>
>
> Tests show incorrect operation of the database.
> Stack error bit different. But the result is the same.
> If the error on the level of queries to the database, the test falls.
> If the error in the logic of business process, the test passes.
> {code}throw new Exception("send error"); // it's test work OK{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)