3.6.4 Subscribe to Receive XA Transaction Notifications
You can register your transaction initiator and participant services to receive notifications. MicroTx Distributed Transactions notifies the registered services when the following events occur: before the prepare phase and when MicroTx Distributed Transactions successfully commits or rolls back a transaction.
The MicroTx Distributed Transactions coordinator notifies the services that you register. You may want to register your service, if based on the business logic your service performs additional tasks when an event occurs. For every resource that you register, you must create a callback resource and declare two methods which MicroTx Distributed Transactions calls to send the notification when an event occurs.
Note:
This feature is available only for Java services.Parent topic: Manage XA Transactions