mmarkus/infinispan — comment on commit ad10a47b67b04d2d28f073bbc019156f3579c69a
File: core/src/main/java/org/infinispan/factories/TransactionTableFactory.java line 57
By mmarkus:

"That you can't have XA and batch-mode?" <-- precisely. If the BatchingTM is used then you don't have recovery, so no point in using XAResource enlistment. Also batches don't participate in distributed transactions.

"Also, this check could be made in the TransactionConfigurationBuilder.validate() and BatchingConfigurationBuilder.validate() since you can then change the config if needed over there." <-- in order to take this decision I need a reference to the TransactionManager which I won't have when TransactionConfigurationBuilder.validate() is invoked.