title: How can I enlist an ODBC connection in an XA 2PC transaction?
body: <p>Our application uses ODBC to communicate with a database (Both DB2 and Oracle, if it makes a difference), and delegates business logic to Java by way of <strong>JNI</strong> (So it uses Java <em>and</em> C).</p>
  
  <p>What I'd like to know is what tools / software / libraries are needed to allow the business logic (Java/JDBC) and the application framework (C/ODBC) to participate in a two-phase commit protocol.</p>
  
  <p>We run on Linux for this project, but generally support Solaris and Windows too, so multiplatform solutions are preferred.</p>