scalar-labs / btm

JTA Transaction Manager
Apache License 2.0
426 stars 151 forks source link

Support custom XAResourceProducer implementations in ResourceLoader #89

Open klr8 opened 7 years ago

klr8 commented 7 years ago

The ResourceLoader is hard-coded to support two types of XAResourceProducer implementations: the PoolingDataSource for a JDBC XADataSource and the PoolingConnectionFactory for a JMX XAConnectionFactory.

We have our own custom XAResourceProducer implementations and currently we need to manually register them with the transaction manager (ResourceRegistrar). This is inconvenient.

I would like to request the ResourceLoader be enhanced to support custom XAResourceProducer implementations. Maybe it can recognize a "resource.name.producerClassName" property in the properties file and if (optionally) specified use that?

lorban commented 7 years ago

Interesting. This could be done, but only if you're willing to spend the time doing it yourself as well as handling all the release work.

Please contact me privately if you feel like it.