0

I am looking for examples or resources to prove support for ActiveMQ as one of the resource managers with Tuxedo as the XA transaction manager. I am working on building a C++ Application to do the same. I am unable to find any documentation on Tuxedo community or Google for the same.

Justin Bertram
  • 29,372
  • 4
  • 21
  • 43
N3Xg3N
  • 97
  • 1
  • 12

1 Answers1

1

No, it does not support it out of the box. There is a list of resource managers supported in $TUXDIR/udataobj/RM. To support ActiveMQ, you should add an entry in the RM file with the resource manager name, a symbol name that contains pointers to XA functions, and a list of libraries for linking the resource manager. After that, you should be able to build a transaction manager server, see the manual for buildtms command.

aivarsk
  • 478
  • 5
  • 7
  • thanks, are you aware if there is already a library available from ActiveMQ which has XA functions , so that i can plug it in and run buildtms? – N3Xg3N Feb 10 '22 at 17:13
  • There are classes in the [ActiveMQ CMS client](https://activemq.apache.org/components/cms/) that provide XA functions. See `ActiveMQXAConnectionFactory`, `ActiveMQXAConnection`, and `ActiveMQXASession`. `ActiveMQXASession` in particular provides `getXAResource()` which returns an `XAResource`. – Justin Bertram Feb 10 '22 at 18:41
  • do we have XA switch functions library provided by ActiveMQ , which can be setup in $TUXDIR/udataobj/RM ? – N3Xg3N Feb 14 '22 at 05:06