[
https://issues.jboss.org/browse/ISPN-2278?page=com.atlassian.jira.plugin....
]
Thomas Fromm updated ISPN-2278:
-------------------------------
Description:
The implicit enabling of transaction support does not work in all cases described in
TransactionMode Javadoc inside the current configuration API.
- transactionManagerLookup is explicit configured
This works not in programmatic.
- enabled batching
When using XML configuration, this will not work, when only <invocationBatching>
element and no <transaction> element is used.
At ConfigurationBuilderHolder.newConfigurationBuilder(...) the default cache config is
used as base for the new named cache. Since build() is called, the
TransactionConfiguration is set to NON_TRANSACTIONAL in the Configuration template used
for the new ConfigurationBuilder. Later then any if(transactionMode == null)-related
conditions in TransactionConfigurationBuilder will fail.
was:
The implicit enabling of transaction support does not work in all cases described in
TransactionMode Javadoc inside the current configuration API.
- transactionManagerLookup is explicit configured
This works not in programmatic.
- enabled batching
When using XML configuration, this will not work, when only <invocationBatching>
element and no <transaction> element is used.
At ConfigurationBuilderHolder.newConfigurationBuilder(...) the default cache config is
used as base for the new named cache. Since build() is called, the
TransactionConfiguration is set to NON_TRANSACTIONAL in the Configuration template used
for the new ConfigurationBuilder. Later then any if(transactionMode == null)-related
conditions in TransactionConfigurationBuilder will fail.
ISPN-2276 _maybe_ also points to this problem, did not spent further investigation on it.
Implicit transaction enabling during configuration fails
--------------------------------------------------------
Key: ISPN-2278
URL:
https://issues.jboss.org/browse/ISPN-2278
Project: Infinispan
Issue Type: Bug
Components: Configuration
Affects Versions: 5.1.6.FINAL
Reporter: Thomas Fromm
Assignee: Mircea Markus
The implicit enabling of transaction support does not work in all cases described in
TransactionMode Javadoc inside the current configuration API.
- transactionManagerLookup is explicit configured
This works not in programmatic.
- enabled batching
When using XML configuration, this will not work, when only <invocationBatching>
element and no <transaction> element is used.
At ConfigurationBuilderHolder.newConfigurationBuilder(...) the default cache config is
used as base for the new named cache. Since build() is called, the
TransactionConfiguration is set to NON_TRANSACTIONAL in the Configuration template used
for the new ConfigurationBuilder. Later then any if(transactionMode == null)-related
conditions in TransactionConfigurationBuilder will fail.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira