Skip to content

Allow TxTransactionalMethodInterceptor to commit the transaction on some exceptions #129

@christianpoitras

Description

@christianpoitras

As @alexey-su noted:

Probably, it is necessary to implement a transaction rollback according to @javax.ejb.ApplicationException.

@ApplicationException(rollback=true)
public class EncryptionException extends Exception {
   ...
}

If an error occurs, the successor to RuntimeException, the system rolls back the transaction.
If there is another error, the system looks for the ApplicationException and makes a decision to roll back the transaction.

See #99.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions