[
https://issues.jboss.org/browse/ISPN-2276?page=com.atlassian.jira.plugin....
]
Galder Zamarreño updated ISPN-2276:
-----------------------------------
Fix Version/s: 5.2.0.Alpha4
5.2.0.Final
Git Pull Request:
https://github.com/infinispan/infinispan/pull/1298 (was:
https://github.com/infinispan/infinispan/pull/1298)
Affects Version/s: 5.2.0.Alpha3
NamedCache problem with xml config
----------------------------------
Key: ISPN-2276
URL:
https://issues.jboss.org/browse/ISPN-2276
Project: Infinispan
Issue Type: Bug
Components: Core API
Affects Versions: 5.1.6.FINAL, 5.2.0.Alpha3
Environment: XUbuntu 12
Reporter: Ron Albury
Assignee: Mircea Markus
Fix For: 5.2.0.Alpha4, 5.2.0.Final
I am using the Tree API for Infinispan. I want to persist the cache. I started with the
following configuration xml for my loader:
<infinispan>
<default>
<loaders passivation="false" shared="false"
preload="true">
<loader
class="org.infinispan.loaders.file.FileCacheStore"
fetchPersistentState="true"
purgerThreads="1"
purgeSynchronously="true"
ignoreModifications="false"
purgeOnStartup="false">
<properties>
<property name="location"
value="/home/eialbur/infiniCache" />
</properties>
</loader>
</loaders>
<invocationBatching enabled="true"/>
</default>
</infinispan>
This worked great, but I wanted it to be a named cache. I modified the xml changing
<default> to <namedCache name="foo">.
This now produces the runtime error: Cannot enable Invocation Batching when the
Transaction Mode is NON_TRANSACTIONAL, set the transaction mode to TRANSACTIONAL
So then I modified the xml as follows:
<infinispan>
<namedCache name="foo" >
<loaders passivation="false" shared="false"
preload="true">
<loader
class="org.infinispan.loaders.file.FileCacheStore"
fetchPersistentState="true"
purgerThreads="1"
purgeSynchronously="true"
ignoreModifications="false"
purgeOnStartup="false">
<properties>
<property name="location"
value="/home/eialbur/infiniCache" />
</properties>
</loader>
</loaders>
<transaction transactionMode="TRANSACTIONAL" />
<invocationBatching enabled="true"/>
</namedCache>
</infinispan>
This now produces the following runtime error: invocationBatching is not enabled. Make
sure this is enabled by calling configurationBuilder.invocationBatching().enable()
I assume this is some sort of problem with Infinispan. It appears that namedCache is
having troubles with configuring from xml.
--
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