vladmihalcea / flexy-pool

FlexyPool adds metrics and failover strategies to a given Connection Pool, allowing it to resize on demand.
Apache License 2.0
1.09k stars 120 forks source link

Add support for Narayana TM #4

Open vladmihalcea opened 9 years ago

vladmihalcea commented 9 years ago

The JBoss Narayana TM should be supported by FlexyPool, to make it available to JBoss and Wildfly Application servers.

vladmihalcea commented 9 years ago

I took a look on the Narayana codebase and it seems they don't really offer actual connection pooling (min/max pool size), as they just reuse one connection for the duration of the current Transaction.

The actual connection pool support resides in some other JBoss module and I found that you can configure external pools too (e.g. C3P0 or HikariCP). This could be a workaround for the moment, until FlexyPool supports proxying XADataSource as well.

The original implementation started with Bitronix, which doesn't require an XADataSource, since it can proxy any DataSource even in a JTA environement.