Menu

#108 Improved XA Support (jTDS 1.2.5)

open
nobody
None
5
2012-08-15
2010-05-19
No

Hi,

this is a set of patches which improves XA support significantly.
More details are described in the attached jtds_1.2.5_xa_README.txt .

A short summary:

Java sources:
- fixed setting transaction isolation level
- fixed connection interference (closing one connection caused
"XAER_RMFAIL: The resource manager is unavailable." when
accessing another connection.) The test case is in Java,
which is why it is listed here and the actual fix is in the
XA DLL.
- implemented XAResource.setTransactionTimeout()
(mostly taken over from trunk)
- added a getStatus command which fetches status information
from the XA DLL. (mainly used for unit testing)

XA DLL:
- fixed resource leaks
- cleanup when connection is lost (deadlock victim)
- thread records now stored in hash table

Build:
- Supported bulding the DLLs with MS Visual C++ Express.
- Command line build with Windows SDK v7.
- Target platforms x86, x64 and ia64.
- ant script to launch DLL builds

This is a rather large patch and I expect that some things have to be discussed :-)
I noticed some documentation glitches - I'll iron those out and add a further patch for that later.

Best wishes,
Rainer

Discussion

  • Rainer Schwarze

    Rainer Schwarze - 2010-05-19
     
  • Rainer Schwarze

    Rainer Schwarze - 2010-05-19

    Patch for XA DLL C sources

     
  • Rainer Schwarze

    Rainer Schwarze - 2010-05-19

    Patch for SSO DLL source

     
  • Rainer Schwarze

    Rainer Schwarze - 2010-05-19

    Patch for DLL build scripts

     
  • Rainer Schwarze

    Rainer Schwarze - 2010-05-19

    Patch for XA Java sources

     
  • Rainer Schwarze

    Rainer Schwarze - 2010-05-19

    The XA.sln file (use that on top of the patch)

     
  • Rainer Schwarze

    Rainer Schwarze - 2010-05-19

    The SSO.sln file (use that on top of the patch)

     
  • momo

    momo - 2010-06-30

    Rainer,

    thank you for taking the time to provide that patches. Unfortunately I'm not able to test the XA functionality, at the moment. Nevertheless, maybe we could discuss the points you think may be worth it if there is anything special you are concerned about.

    Cheers,
    momo

     
  • Rainer Schwarze

    Rainer Schwarze - 2010-07-02

    Hi,

    at the moment I am busy with another project, but I keep an eye on it.
    May be we could go through some XA related tracker items and see whether we find someone else whom we can ask to run a few tests in a suitable environment and take a look at the code?

    Best wishes,
    Rainer

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.