| 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.
|