Skip to content

Commit

Permalink
try some clustering..
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Jan 19, 2013
1 parent e48993c commit 8bf590c
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
36 changes: 36 additions & 0 deletions src/main/resources/infinispan_configuration.xml
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<infinispan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:infinispan:config:5.1 http://www.infinispan.org/schemas/infinispan-config-5.1.xsd"
xmlns="urn:infinispan:config:5.1">

<global>
<transport clusterName="modeshape-cluster">
<properties>
<property name="configurationFile" value="jgroups-tcp.xml" />
</properties>
</transport>
</global>

<namedCache name="persistentRepository">
<eviction strategy="LIRS" maxEntries="600"/>

<!-- Configure a synchronous replication cache -->
<clustering mode="replication">
<sync />
</clustering>

<transaction transactionManagerLookupClass="org.infinispan.transaction.lookup.GenericTransactionManagerLookup"
transactionMode="TRANSACTIONAL"
lockingMode="PESSIMISTIC" />
<loaders passivation="false"
shared="false"
preload="false">
<loader class="org.infinispan.loaders.file.FileCacheStore"
fetchPersistentState="true"
purgeOnStartup="false">
<properties>
<property name="location" value="target/clustered/store" />
</properties>
</loader>
</loaders>
</namedCache>
</infinispan>
13 changes: 13 additions & 0 deletions src/main/resources/my_repository.json
Expand Up @@ -6,6 +6,15 @@
"default" : "default",
"allowCreation" : true
},
"storage" : {
"cacheName" : "persistentRepository",
"cacheConfiguration" : "infinispan_configuration.xml",
"binaryStorage" : {
"type" : "file",
"directory": "target/persistent_repository/binaries",
"minimumBinarySizeInBytes" : 40
}
},
"security" : {
"anonymous" : {
"roles" : ["readonly","readwrite","admin"],
Expand All @@ -15,5 +24,9 @@
{ "classname" : "servlet" }
]
},
"clustering" : {
"clusterName" : "modeshape",
"channelConfiguration" : "jgroups-tcp.xml"
},
"node-types" : ["fedora-node-types.cnd"]
}

0 comments on commit 8bf590c

Please sign in to comment.