9.8. Transaction Events
Prev | Chapter 9. Runtime Extensions | Next

## 9.8. Transaction Events

The Kodo runtime supports broadcasting transaction-related events. By registering one or more `kodo.event.TransactionListener`s, you can receive notifications when transactions begin, flush, rollback, commit, and more. Where appropriate, event notifications include the set of persistence-capable objects participating in the transaction.

    public void addTransactionListener (Object listener);
    public void removeTransactionListener (Object listener);

These methods, available on any `OpenJPAEntityManager` or `KodoPersistenceManager`, allow you to add and remove listeners.

For details on the transaction framework, see the `kodo.event` package Javadoc. Also see Section 11.3, “Remote Event Notification Framework” for a description of Kodo's remote event support.

Prev | Up | Next
9.7. Generators | Home | 9.9. Non-Relational Stores