此内容没有您所选择的语言版本。

12.7. The CarMart Quickstart in Remote Client-Server Mode


This quickstart accesses JBoss Data Grid via Hot Rod. This feature is not available for the Transactional CarMart quickstart.

Important

This quickstart deploys to JBoss Enterprise Application Platform or JBoss Application Server. The application can not be deployed to JBoss Data Grid because it does not support application deployment.
Prerequisites

Prerequisites for this procedure are as follows:

  1. Obtain the most recent supported JBoss Data Grid Remote Client-Server Mode distribution files from Red Hat.
  2. Ensure that the JBoss Data Grid and JBoss Enterprise Application Platform Maven repositories are installed and configured. For details, refer to Chapter 4, Install and Use the Maven Repositories
  3. Select a JBoss server to use (JBoss Enterprise Application Platform 6 (or better) or JBoss Application Server 7 (or better). Navigate to the root of the JBoss server directory in a terminal window and enter the following command:
    For Linux users:
    $JBOSS_HOME/bin/standalone.sh
    Copy to Clipboard Toggle word wrap
    For Windows users:
    $JBOSS_HOME\bin\standalone.bat
    Copy to Clipboard Toggle word wrap

Procedure 12.7. Build and Deploy the CarMart Quickstart in Remote Client-Server Mode

  1. Configure the Standalone File

    Add the following configuration to the standalone.xml file located in the $JDG_HOME/standalone/configuration/ directory.
    1. Add the following configuration within the infinispan subsystem tags:
      <local-cache name="carcache" 
      	     start="EAGER" 
      	     batching="false" 
      	     indexing="NONE">
      	<locking isolation="REPEATABLE_READ" 
      		 striping="false" 
      		 acquire-timeout="20000" 
      		 concurrency-level="500"/>
      	<eviction strategy="LIRS" 
      		  max-entries="4" />
      </local-cache>
      
      Copy to Clipboard Toggle word wrap

      Note

      If the carcache element already exists in your configuration, replace it with the provided configuration.
  2. Start the JBoss Data Grid Server

    Run the following script to start the JBoss Data Grid Server:
    $JDG_HOME/bin/standalone.sh -Djboss.socket.binding.port-offset=100
    Copy to Clipboard Toggle word wrap
  3. Start the JBoss Server

    Run the following script to start the JBoss server instance where your application will deploy:
    $JBOSS_HOME/bin/standalone.sh
    Copy to Clipboard Toggle word wrap
  4. Optional: Specify the Host and Port Address

    The application uses the values in the jboss-datagrid-quickstarts-6.1/carmart/src/main/resources/META-INF/datagrid.properties file to locate the JBoss Data Grid server. If your JBoss Data Grid server is not running using the default host and port values, edit the file and insert the correct host and port values, as follows:
    datagrid.host=localhost
    datagrid.hotrod.port=11322
    Copy to Clipboard Toggle word wrap
  5. Build and Deploy the Application

    Use the following command to build and deploy your application in the relevant directory:
    $ mvn clean package -Premote
    
    Copy to Clipboard Toggle word wrap
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat