Skip navigation links

Package net.sf.mmm.transaction.api

Provides the API for transaction support.

See: Description

Package net.sf.mmm.transaction.api Description

Provides the API for transaction support.

Transaction API

This package contains the API for transaction support. For scenarios where AOP is not an option (for what ever reason) mmm-transaction supports simple and effective transaction management and prevents you from doing typical mistakes when dealing with transactions.
The main component offered by this API is TransactionExecutor that allows to perform arbitrary code within a transaction. Use this at the entry points to your application (web-services, servlets, etc.). For advanced use-cases like batches that have to process millions of entities you can use the TransactionCallable callback-interface to delegate to your custom code to execute transactional. Then you will receive a TransactionAdapter that allows to do intermediate commits without bundling your business logic with the technical details of transaction handling. Additionally, TransactionExecutor allows to register an TransactionEventListener to add custom logic to the transaction management.
This API abstracts from any underlying transaction management framework (JTA, spring-transaction) and allows to choose it by adding the right implementation of this API to your classpath.
Skip navigation links

Copyright © 2001–2014 mmm-Team. All rights reserved.