Reputation: 1
We want to have a distributed transaction publishing between two ActiveMQ brokers. The ActiveMQ documentation states they support XA transactions. Our code base is currently written in python. We have not found many examples of orchestration of xa transactions with ActiveMQ. We are currently using using transaction package for transaction management. We are using the stomp package to establish a connection. Does anyone have any reference on how to setup XA transactions to publish messages in python?
Upvotes: 0
Views: 300
Reputation: 186
Why do you want XA when you want to publish between two ActiveMQ brokers? The publication can be retried and finally succeed. I think what you need is OutBox pattern, not XA.
Upvotes: 1
Reputation: 18356
The STOMP specification doesn't provide any means of performing XA scoped transactions so you are unlikely to find any reliable means of participating in such a transaction from a STOMP client and any broker implementation would be specific to that broker and not be portable to others. The ActiveMQ 5.x broker supports XA transaction for the ActiveMQ JMS client which uses the Openwire protocol and does not implement XA support for STOMP or other protocols like MQTT or AMQP.
Upvotes: 1