Menu

#1 XA Support

open
nobody
None
7
2008-11-07
2008-11-07
Alien
No

Is there any chance to add XA support to log4jdbc?

Weblogic throws JTA exception complaining log4jdbc-wrapped data source does not support XA.

Is it difficult to add such support? if not, my colleagues and I am glad to help on this.

Discussion

  • Alien

    Alien - 2008-11-07
    • priority: 5 --> 7
     
  • Alien

    Alien - 2008-11-13

    OracleXADataSourceSpy

     
  • Alien

    Alien - 2008-11-13

    After a brief study, I found a solution on that. Dunno if it is most appropriate way but at least it is clear and easy.

    The issue is in fact in XA situation, we are not using JDBC Driver but a Data Source in configuring our connection pool.

    The solution I created is (as I am using Oracle) a subclass of OracleXADataSource (I called it OracleXADataSourceSpy), and it overrided getXAConnection and getConnection. For getXAConnection, I return a XAConnectionSpy which do some logging, and return ConnectionSpy when getXAConnection is called.

    The problem of this solution is we have to depends on oracle's jar (or other DBMS client lib) during the compilation. I am not sure if it cause any issue in distribution too (probably not).

    File Added: oracleSpy.zip

     

Log in to post a comment.

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.