このコンテンツは選択した言語では利用できません。

9.5. Configure the Interface Using Connectors


Red Hat JBoss Data Grid supports three connector types, namely:
  • The hotrod-connector element, which defines the configuration for a Hot Rod based connector.
  • The memcached-connector element, which defines the configuration for a memcached based connector.
  • The rest-connector element, which defines the configuration for a REST interface based connector.

9.5.1. Configure REST Connectors

Use the following procedure to the rest-connector element in Red Hat JBoss Data Grid's Remote Client-Server mode.

Procedure 9.1. Configuring REST Connectors for Remote Client-Server Mode

The rest-connector element specifies the configuration information for the REST connector.
  1. The virtual-server Parameter

    The virtual-server parameter specifies the virtual server used by the REST connector. The default value for this parameter is default-host. This is an optional parameter.
    <subsystem xmlns="urn:infinispan:server:endpoint:6.0">
       <rest-connector virtual-server="default-host" />
    </subsystem>
    
    Copy to Clipboard Toggle word wrap
  2. The cache-container Parameter

    The cache-container parameter names the cache container used by the REST connector. This is a mandatory parameter.
    <subsystem xmlns="urn:infinispan:server:endpoint:6.0">
       <rest-connector virtual-server="default-host"
                     cache-container="local" />
    </subsystem>
    
    Copy to Clipboard Toggle word wrap
  3. The context-path Parameter

    The context-path parameter specifies the context path for the REST connector. The default value for this parameter is an empty string (""). This is an optional parameter.
    <subsystem xmlns="urn:infinispan:server:endpoint:6.0">
       <rest-connector virtual-server="default-host"
                     cache-container="local"
                     context-path="${CONTEXT_PATH}" />
    </subsystem>
    
    Copy to Clipboard Toggle word wrap
  4. The security-domain Parameter

    The security-domain parameter specifies that the specified domain, declared in the security subsystem, should be used to authenticate access to the REST endpoint. This is an optional parameter. If this parameter is omitted, no authentication is performed.
    <subsystem xmlns="urn:infinispan:server:endpoint:6.0">
       <rest-connector virtual-server="default-host"
                     cache-container="local"
                     context-path="${CONTEXT_PATH}"
                     security-domain="${SECURITY_DOMAIN}" />
    </subsystem>
    
    Copy to Clipboard Toggle word wrap
  5. The auth-method Parameter

    The auth-method parameter specifies the method used to retrieve credentials for the end point. The default value for this parameter is BASIC. Supported alternate values include DIGEST, CLIENT-CERT and SPNEGO. This is an optional parameter.
    <subsystem xmlns="urn:infinispan:server:endpoint:6.0">
       <rest-connector virtual-server="default-host"
                     cache-container="local"
                     context-path="${CONTEXT_PATH}"
                     security-domain="${SECURITY_DOMAIN}"
                     auth-method="${METHOD}"  />
    </subsystem>
    
    Copy to Clipboard Toggle word wrap
  6. The security-mode Parameter

    The security-mode parameter specifies whether authentication is required only for write operations (such as PUT, POST and DELETE) or for read operations (such as GET and HEAD) as well. Valid values for this parameter are WRITE for authenticating write operations only, or READ_WRITE to authenticate read and write operations. The default value for this parameter is READ_WRITE.
    <subsystem xmlns="urn:infinispan:server:endpoint:6.0">
       <rest-connector virtual-server="default-host"
                     cache-container="local"
                     context-path="${CONTEXT_PATH}"
                     security-domain="${SECURITY_DOMAIN}"
                     auth-method="${METHOD}" 
                     security-mode="${MODE}" /> 
    </subsystem>
    
    Copy to Clipboard Toggle word wrap
トップに戻る
Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。 最新の更新を見る.

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

Theme

© 2025 Red Hat