Hi everybody o/
I'm new in here, my english is very bad :/ i'm brazilian, so forgive me for any phrase bad formulated!
well, we will go to problem!
I have a project where i work with: Hibernate 3.6.10 + Spring 3.2.5 in JBoss AS7;
I need implemented the Hibernate Search in mode Cluster:
I'm trying make it with Infinispan;
I have this configuration:
Code:
<!-- Hibernate Search-->
<prop key="hibernate.search.default.directory_provider">infinispan</prop>
<prop key="hibernate.search.infinispan.cachemanager_jndiname" >java:jboss/infinispan/container/web</prop>
<prop key="hibernate.search.infinispan.chunk_size">300000000</prop>
<prop key="hibernate.search.reader.strategy">shared</prop>
<prop key="hibernate.search.worker.execution">sync</prop>
<prop key="hibernate.search.jmx_enabled">true</prop>
<prop key="hibernate.search.​default.​exclusive_index_use">true</prop>
<!--<prop key="hibernate.search.default.directory_provider">org.hibernate.search.store.FSDirectoryProvider</prop> -->
<prop key="hibernate.search.default.indexBase">/tmp_atual_infinispan/lucene_indexes</prop>
<prop key="hibernate.search.analyzer">org.apache.lucene.analysis.br.BrazilianAnalyzer</prop>
<prop key="hibernate.search.default.worker.backend">JGroups</prop>
<!-- <prop key="hibernate.search.services.jgroups.clusterName">My-Custom-Cluster-Id</prop> -->
<prop key="hibernate.ejb.event.post-insert"> org.hibernate.search.event.FullTextIndexEventListener </prop>
<prop key="hibernate.ejb.event.post-update" > org.hibernate.search.event.FullTextIndexEventListener </prop>
<prop key="hibernate.ejb.event.post-delete" > org.hibernate.search.event.FullTextIndexEventListener </prop>
<prop key="hibernate.search.default.data_cachename">LuceneIndexesData</prop>
<prop key="hibernate.search.default.metadata_cachename">LuceneIndexesMetadata</prop>
<prop key="hibernate.search.default.locking_cachename">LuceneIndexesLocking</prop>
I'm trying use cache directly from jboss, this way:
Code:
<cache-container name="web" aliases="standard-session-cache" default-cache="LuceneIndexesData">
<transport lock-timeout="60000"/>
<replicated-cache name="repl" mode="ASYNC" batching="true">
<file-store/>
</replicated-cache>
<replicated-cache name="sso" mode="SYNC" batching="true"/>
<replicated-cache name="LuceneIndexesMetadata" mode="SYNC" start="EAGER">
<binary-keyed-jdbc-store datasource="java:jboss/datasources/moto" shared="true" passivation="false" purge="false">
<property name="createTableOnStart">
true
</property>
<binary-keyed-table>
<id-column name="ID_COLUMN" type="VARCHAR(255)"/>
<data-column name="DATUM" type="VARBINARY(8000)"/>
</binary-keyed-table>
</binary-keyed-jdbc-store>
</replicated-cache>
<replicated-cache name="LuceneIndexesData" mode="SYNC" start="EAGER">
<binary-keyed-jdbc-store datasource="java:jboss/datasources/moto" shared="true" passivation="false" purge="false">
<property name="createTableOnStart">
true
</property>
<binary-keyed-table>
<id-column name="ID_COLUMN" type="VARCHAR(255)"/>
<data-column name="DATUM" type="VARBINARY(8000)"/>
</binary-keyed-table>
</binary-keyed-jdbc-store>
</replicated-cache>
<replicated-cache name="LuceneIndexesLocking" mode="SYNC" start="EAGER"/>
<distributed-cache name="dist" mode="ASYNC" batching="true">
<file-store/>
</distributed-cache>
</cache-container>
My jars in maven are:
Code:
<groupId>org.hibernate</groupId>
<artifactId>hibernate-search-infinispan</artifactId>
<version>3.4.2.Final</version>
Code:
<groupId>org.hibernate</groupId>
<artifactId>hibernate-search</artifactId>
<version>3.4.2.Final</version>
Code:
<groupId>org.hibernate</groupId>
<artifactId>hibernate-infinispan</artifactId>
<version>4.2.1.Final</version>
when i start jboss i get the error: org.jboss.as.clustering.infinispan.DefaultEmbeddedCacheManager cannot be cast to org.infinispan.manager.EmbeddedCacheManager
how i can resolve this problems? any help is great importance o/
Thank you!!! I hope to improve my English o/