7.6.3 Subscribe to Receive XA Transaction Notifications
You can register your transaction initiator and participant services to receive notifications. MicroTx notifies the registered services when the following events occur: before the prepare phase and when MicroTx successfully commits or rolls back a transaction.
The MicroTx 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 calls to send the notification when an event occurs.
Note:
This feature is available only for Java services.Perform the following task for the transaction participant and initiator services that you want to register to receive event notifications.
Parent topic: Manage XA Transactions