There are a few pooling implementations for XADataSources. I would recommend that you take a look at the one provided by Tomcat. It comes packaged as a bundle (installs cleanly with no dependencies in SMX) and comes with XA support.
https://tomcat.apache.org/tomcat-8.0-doc/jdbc-pool.html http://mvnrepository.com/artifact/org.apache.tomcat/tomcat-jdbc/8.0.18 Jakub On 09/02/15 05:21, kb wrote: > Hi, > I noticed that any working servicemix example demonstrating distributed/XA > transactions uses the native XA data-source provided in the database vendor > drivers. On the other side, I couldn't find any 3rd party software providing > xa-connection pooling (Atomikos is often mentionned here as an pooled > XA-datasource candidate, but Atomikos main class AtomikosDataSourceBean only > provides a regular DataSource, not an XA-DataSource and, as-such, requires > Atomikos custom transaction manager installation to properly handle > distributed transactions). The fact that most of those native XA > data-sources are not backed by a connection pool, seems to imply that > Servicemix can freewheelingly open as many connections as it wants against > the database with no upper limit (I'm specifically worrying here about a > "split" pattern gone wrong and trying to open one connection after the > other). > I normally connect to databases through connection pools like commons-dbcp > and c3p0 which I use as "circuit-breakers" to prevent that one of my > applications unwillingly throws a denial-of-request attack on the database > by exhausting all database connections. > Is there any way to mitigate this problem or is that issue of no concern ? > (if so, then why ?) > Regards > kb > > > > -- > View this message in context: > http://servicemix.396122.n5.nabble.com/Are-XA-datasources-dangerous-tp5722254.html > Sent from the ServiceMix - User mailing list archive at Nabble.com.