이 콘텐츠는 선택한 언어로 제공되지 않습니다.

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.
맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2025 Red Hat