WebSphere Application Server - How to get the Xid of the current transaction interaction execution

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Application Server > January 2008 > How to get the Xid of the current transaction interaction execution





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How to get the Xid of the current transaction interaction execution
JStorni

2008-01-02, 1:42 am

Hello,<br />
<br />
I'm developing a JCA 1.5 compliant connector and facing a design concern:<br />
<br />
one of the requirements is maintain custom data for every invocation in a global transaction. This means, store data in a given repository for every transaction; the way to relate transactions with that custom data is the Xid (the Xid of transactions is t
he key of the custom data).<br />
The problem is: how to get the Xid of the current transaction interaction execution ?<br />
<br />
For now, I'm using callbacks to notify Connection implementation when the ResourceAdapter implementation receives the start event. This pattern enforces the use of a single Connection implementation instance for each ManagedConnnection implementation inst
ance, and causes a synchronization logic implementation (not so fancy).<br />
<br />
My concrete question is: which is the common pattern used to get the xid of the current transaction in JCA 1.5 compliant connectors ? I mean.... the official way.<br />
<br />
Thanks in advance.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com