Can I BTM work with C3P0?

View: New views
3 Messages — Rating Filter:   Alert me  

Can I BTM work with C3P0?

by kelvinlaw :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

My project uses C3P0 as connection pool and now is adopting XA Transaction. So I am looking into BTM project and sounds a robust Open Source JTA implementation.

As I would like to introduce XA Transaction with smallest changes, can I use BTM as Transaction Manger and C3P0 as Connection Pool instead of using bitronix.tm.resource.jdbc.PoolingDataSource?

Thanks:)

Re: Can I BTM work with C3P0?

by Ludovic Orban :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

No, you can't. XA transaction managers require XA-aware connection pools and C3P0 doesn't do that.

Re: Can I BTM work with C3P0?

by kelvinlaw :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I see & thanks

Ludovic Orban wrote:
No, you can't. XA transaction managers require XA-aware connection pools and C3P0 doesn't do that.