Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.

15.5. The (Non-transactional) CarMart Quickstart in Remote Client-Server Mode (JBoss EAP)


The Carmart (non-transactional) quickstart is supported for JBoss Data Grid's Remote Client-Server Mode with the JBoss Enterprise Application Platform container.
This quickstart accesses Red Hat 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. The application cannot 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, see Chapter 3, Install and Use the Maven Repositories
  3. Select a JBoss server to use (JBoss Enterprise Application Platform 7 or later). 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 15.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, before the ending cache-container tag:
      <local-cache name="carcache" 
      	     start="EAGER" 
      	     batching="false"
      	     statistics="true">
      	<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-{VERSION}-quickstarts/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. Navigate to the Root Directory

    Open a command line and navigate to the root directory of this quickstart.
  6. Build and Deploy the Application

    Use the following command to build and deploy your application using Maven:
    $ mvn clean package wildfly:deploy -Premote-eap
    Copy to Clipboard Toggle word wrap

15.5.2. View the CarMart Quickstart in Remote Client-Server Mode

The following procedure outlines how to view the CarMart quickstart in Red Hat JBoss Data Grid's Remote Client-Server Mode:
Prerequisite

The CarMart quickstart must be built and deployed be viewed.

Procedure 15.8. View the CarMart Quickstart in Remote Client-Server Mode

  • Visit the following link in a browser window to view the application:
    http://localhost:8080/jboss-carmart
    Copy to Clipboard Toggle word wrap

15.5.3. Remove the CarMart Quickstart in Remote Client-Server Mode

The following procedure provides directions to remove an already deployed application in Red Hat JBoss Data Grid's Remote Client-Server mode.

Procedure 15.9. Remove an Application in Remote Client-Server Mode

  • To remove an application, use the following command from the root directory of this quickstart:
    $ mvn wildfly:undeploy -Premote-eap
    Copy to Clipboard Toggle word wrap
Nach oben
Red Hat logoGithubredditYoutubeTwitter

Lernen

Testen, kaufen und verkaufen

Communitys

Über Red Hat Dokumentation

Wir helfen Red Hat Benutzern, mit unseren Produkten und Diensten innovativ zu sein und ihre Ziele zu erreichen – mit Inhalten, denen sie vertrauen können. Entdecken Sie unsere neuesten Updates.

Mehr Inklusion in Open Source

Red Hat hat sich verpflichtet, problematische Sprache in unserem Code, unserer Dokumentation und unseren Web-Eigenschaften zu ersetzen. Weitere Einzelheiten finden Sie in Red Hat Blog.

Über Red Hat

Wir liefern gehärtete Lösungen, die es Unternehmen leichter machen, plattform- und umgebungsübergreifend zu arbeiten, vom zentralen Rechenzentrum bis zum Netzwerkrand.

Theme

© 2025 Red Hat