-
Bug
-
Resolution: Done
-
Major
-
3.1.1.Final
-
None
-
Workaround Exists
-
query.indexing.backend for type jquery-slave is copied from jms-slave, and look like that:
{
"type" : "object",
"description" : "The specification for sending all index updates to the maste through a JGroups channel. This is only useful for clustered repositories, where one other process in the cluster is configured with 'jgroups-master'. ",
"additionalProperties" : false,
"properties" : {
"type" : {
"type" : "string",
"enum" : ["jgroups-slave"],
"required" : true,
"description" : "The specification of the Lucene backend for writing all updates directly to Lucene."
},
"connectionFactoryJndiName" : {
"type" : "string",
"required" : true,
"description" : "Defines the name in JNDI where the JMS connection factory can be found. The value is often '/ConnectionFactory' by default in JBoss AS.",
},
"queueJndiName" : {
"type" : "string",
"required" : true,
"description" : "Defines the name in JNDI where JMS queue can be found. The queue will be used to post work messages.",
},
"description" : {
"type" : "string",
"description" : "The optional description of this section of the configuration. It is unused by ModeShape."
},
}
},
while it should have properties like jgroups-master, that means:
-channelName
-channelConfiguration
Also when you set those properties they are rewritten to bad hibernate properties, that cause startup error in hibernate 4.1.1.Final
properties set in org.modeshape.jcr.query.lucene.basic.BasicLuceneConfiguration
should be like that (starting line 222):
setProperty("hibernate.search.default.worker.backend", type); setProperty("hibernate.search.services.jgroups.clusterName", channel); if (isFileOrClasspath(config)) { setProperty("hibernate.search.services.jgroups.configurationFile", config); } else if (isJGroupsXml(config)) {