• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how get Xid on a JCA Iteraction execution

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm working in one file system connector using JCA (Connector Architecture) to supports XA transations.

I have MyXAResource.java (singleton) to keep state of my operations in a hashmap, adding a list of operations executed to this hashmap where the key is the id of the transation(Xid). So, where commit(Xid) or rollback(Xid) is invoked on this interface I get the list of operations from the hashmap and complete or remove the actions I take over file system.

But when I'm executing one Interaction I can't know which transaction this execution belongs. How can I get the transaction id (Xid) when I'm executing an operation (on MyInteraction.java, implementsjavax.resource.cci.Iteraction). I need this to add this operation to the correct operation historic.

Thanks,
Pedro Cardoso
 
Make yourself as serene as a flower, as a tree. And on wednesdays, as serene as this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic