jboss7.x - Hibernate Search JGroups configuration under JBoss 7 -


i'm part of team writing web app uses hibernate search, , we've tried start implement use of jgroups keep lucene indexes on different nodes in sync each other.

however, i've been unable past basic first steps in getting set up, , documentation seems quite sparse.

<bean class="org.springframework.orm.jpa.localcontainerentitymanagerfactorybean" id="myfactory"> <property name="datasource" ref="mydatasource"/> <property name="persistencexmllocation" value="/web-inf/persistence.xml"/> <property name="persistenceunitname" value="persistenceunit"/> <property name="jpavendoradapter" ref="vendoradapter"/> <property name="jpaproperties">     <props>         <prop key="hibernate.search.worker.backend.jgroups.configurationfile">jgroups-config.xml</prop>         <prop key="hibernate.search.default.directory_provider">infinispan</prop>         <prop key="hibernate.search.default.indexbase">indexes</prop>         <prop key="hibernate.search.default.worker.backend">jgroups</prop>         <prop key="hibernate.search.services.jgroups.clustername">mycluster</prop>         <prop key="hibernate.search.error_handler">log</prop>         <prop key="hibernate.search.lucene_version">lucene_36</prop>         <prop key="hibernate.search.generate_statistics">true</prop>         <prop key="hibernate.search.jmx_enabled">true</prop>     </props> </property> 

the key property here hibernate.search.worker.backend.jgroups.configurationfile gives name of configuration file jgroups, need. i've tried putting file in web-inf , in props files in jboss modules directory structure (in other files located , loaded), not getting picked up.

in logs can see:

16:34:57,609 info  [org.hibernate.search.backend.impl.jgroups.jgroupschannelprovider] (msc service thread 1-1) hsearch000005: starting jgroups channel 16:34:57,609 info  [org.hibernate.search.backend.impl.jgroups.jgroupschannelprovider] (msc service thread 1-1) hsearch000011: unable use jgroups configuration mechanisms provided in properties { hibernate.search.default.worker.backend=jgroups, hibernate.search.default.directory_provider=infinispan, hibernate.search.worker.backend.jgroups.configurationfile=jgroups-config.xml}. using default jgroups configuration file! 16:34:59,427 info  [stdout] (msc service thread 1-1)  16:34:59,427 info  [stdout] (msc service thread 1-1) ------------------------------------------------------------------- 16:34:59,428 info  [stdout] (msc service thread 1-1) gms: address=ldnlpt1271-pc-17149, cluster=crisishubcluster, physical address=172.26.10.169:58147 16:34:59,428 info  [stdout] (msc service thread 1-1) ------------------------------------------------------------------- 16:35:02,448 info  [org.hibernate.search.backend.impl.jgroups.jgroupsmastermessagelistener] (msc service thread 1-1) hsearch000015: received new cluster view: [ldnlpt1271-pc-17149|0] [ldnlpt1271-pc-17149] 16:35:02,450 info  [org.hibernate.search.backend.impl.jgroups.jgroupschannelprovider] (msc service thread 1-1) hsearch000006: connected cluster [ mycluster ]. node address ldnlpt1271-pc-17149 16:35:02,513 info  [org.infinispan.remoting.transport.jgroups.jgroupstransport] (cachestartthread,hibernatesearch-infinispan-cluster,luceneindexesmetadata) ispn000078: starting jgroups channel 16:35:02,514 info  [org.infinispan.remoting.transport.jgroups.jgroupstransport] (cachestartthread,hibernatesearch-infinispan-cluster,luceneindexesmetadata) ispn000088: unable use jgroups configuration mechanisms provided in properties {}. using default jgroups configuration! 

i've truncated list of properties in unable use jgroups configuration mechanisms provided in properties take several pages, if @ line, can see lists property @ same time says can't find it.

so, it's not picking config file location, , it's using default.

has here used jgroups hibernate search? did manage supply custom jgroups configuration file? how did it?

right. had download hibernate search source , step through server start in order find this. using hibernate 4.2, , documentation version referring 3.2.

in between 2 versions, renamed property hibernate.search.worker.backend.jgroups.configurationfile hibernate.search.services.jgroups.configurationfile.


Comments