Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Anyone using XA transactions?

Status
Not open for further replies.

TechnoCat

Programmer
Feb 13, 2004
20
0
0
GB
Hello fellow developers,
I've been trying to use "eGate JMS API" to send messages to non listed (in the collab config) publishing locations ans XA transactions to participate in the Collab transaction...

The docs on this matter are pretty scarce and I was wondering if anyone has done anything like this...

My problem seems to be the transaction I try to join from code is not the same as the collabration's, so I end up having two different transactions running one alongside the other.

Here's a code extract if anyone want's to see....

-----------------------------------------------------------
//getting an Xid and XAResource objects
xid = new com.stc.eways.util.XidImpl();
resource = xaTopicSession.getXAResource();

//trans boundaries
resource.start(xid, XAResource.TMJOIN );
EGate.collabDebug("DBG >>> Starting transaction scope.");
topicPublisher.publish(message);
resource.end( xid, XAResource.TMSUCCESS );
-----------------------------------------------------------


Any help highly appreciated, thanks folks.

Technocat.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top