Apache Aries Auto-Enlisting XA Wrapper is broken in Fuse ESB 7.1 and JBoss Fuse 6.0
Issue
-
Currently Apache Aries Auto-Enlisting XA Wrapper feature is broken:
- If OSGi bundle exports a service implementing
javax.sql.XADataSource, then Apache Aries is supposed to pick this service up and re-export a new proxy data source service implementingjavax.sql.DataSourceinterface. - This new proxy service is supposed to be used by applications and is responsible for auto-enlistment of XA connections into global JTA transaction context.
- Upon connection closure and transaction completion, the proxy should return connection back to the pool. However, it is currently broken so connection pool is exhausted after some time.
- If OSGi bundle exports a service implementing
-
Example error message may be as shown below (or similar depending on connection pool implementation used):
Pool empty. Unable to fetch a connection in 30 seconds
Environment
- Fuse Enterprise ESB 7.1
- JBoss Fuse 6.0
- Oracle Database JDBC driver
- MS SQL-Server JDBC Driver
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.