Olá a todos o/
Tenho um projeto com a seguinte configuração: Hibernate 3.6.10 + Spring 3.2.5 + JBoss AS7;
Preciso implementar o hibernate search em modo cluster e para isso estou querendo integrar ele com o infinispan.
meu código:
[code]
<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>[/code]
Estou tentando obter o CacheManager diretamente do container do JBoss AS7, dessa maneira:
<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>
minhas bibliotecas importadas pelo Maven:
<groupId>org.hibernate</groupId>
<artifactId>hibernate-search-infinispan</artifactId>
<version>3.4.2.Final</version>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-search</artifactId>
<version>3.4.2.Final</version>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-infinispan</artifactId>
<version>4.2.1.Final</version>
Quando eu inicio o Jboss eu recebo: org.jboss.as.clustering.infinispan.DefaultEmbeddedCacheManager cannot be cast to org.infinispan.manager.EmbeddedCacheManager
Alguém ja passou por isso?
Alguma idéia do que posso ser?
Qualquer ajuda será de grande importância o/
Obrigado pessoal o/