Este conteúdo não está disponível no idioma selecionado.

15.4.3. Configuring Infinispan Query for JBoss Data Grid


The following procedure shows how to set up a simple configuration for using Infinispan Query with JBoss Data Grid.
  1. Enable the Infinispan Query default configuration and cluster-replicated index for JBoss Data Grid's Query Module, using either "default" or specifying the name of an index. The default configuration does not enable any form of persistence for the index.
    hibernate.search.[default|<indexname>].directory_provider infinispan
    
    Copy to Clipboard Toggle word wrap
    It is possible to use multiple named indexes, so configuration can be applied to all or overridden in a per-index base by using the index name.
    In order to enable a persistent index, either a JBoss Data Grid configuration file must be provided, or point to JNDI as described in Step 2.
  2. Infinispan Query requires a CacheManager, which can be obtained in two ways.
    • Look up and reuse an existing CacheManager programmatically using Java Naming and Directory Interface (JNDI). To use this method, the following property must be set in addition to the property specified in Step 1:
      hibernate.search.[default|<indexname>].infinispan.cachemanager_jndiname = [jndiname]
      
      Copy to Clipboard Toggle word wrap
    • Start and manage a new CacheManager. To use a new CacheManager apply the following:
      hibernate.search.[default|<indexname>].infinispan.configuration_resourcename = [infinispan configuration filename]
      
      Copy to Clipboard Toggle word wrap
    If both parameters are defined, the JNDI will be prioritized.
    If neither of these parameters are defined, Infinispan Query will use the default JBoss Data Grid configuration included in hibernate-search-infinispan.jar, which does not store the index in a persistent cache store.
Specific methods, classes, and packages for this feature are unsupported in JBoss Data Grid, and should not be used. For a full list of prohibited methods, classes, and packages for this feature, see the "Prohibited Classes, Methods, and Packages" section of the JBoss Data Grid 6.1 Release Notes.

Important

The Query Module is currently only available as a Technical Preview for JBoss Data Grid 6.1.
Voltar ao topo
Red Hat logoGithubredditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar. Explore nossas atualizações recentes.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja o Blog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

Theme

© 2025 Red Hat