Questo contenuto non è disponibile nella lingua selezionata.

9.6. The CarMart Quickstart in Remote Client-Server Mode


9.6.1. Build 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.
Prerequisite

Obtain the supported JBoss Data Grid Library Mode distribution files.

Procedure 9.7. Build 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 after the closing tags for the <system-properties> element:
      <paths>
      <path name="temp" path="/tmp"/>
      </paths>
      Copy to Clipboard Toggle word wrap
    2. 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"/>
          <file-store relative-to="temp" 
                      path="carstore" 
                      passivation="false"/>
      </local-cache>
      
      Copy to Clipboard Toggle word wrap
  2. Start the JBoss Data Grid Server

    Run the following script to start the JBoss Data Grid Server:
    $JDG_HOME/bin/standalone.sh
    Copy to Clipboard Toggle word wrap

    Note

    Using the provided configurations, the server runs on the test1 address.
    • Configure test1 for UNIX Users

      Configure the test1 address on a UNIX system by adding the following line to /etc/hosts:
      192.168.11.101    test1
      
      Copy to Clipboard Toggle word wrap
    • Run the IfConfig Command

      Run the following command on the command line:
      $ sudo ifconfig eth0:1 192.168.11.101 netmask 255.255.255.0
      
      Copy to Clipboard Toggle word wrap
  3. Start the JBoss Application Server

    Run the following script to start the JBoss Application Server instance where your application will deploy:
    $JDG_HOME/bin/standalone.sh
    Copy to Clipboard Toggle word wrap
  4. Specify the JBoss Data Grid Server Address

    Edit the jdg.properties file (located in the $JDG_HOME/src/main/resources/META-INF/ directory) to specify the address of the JBoss Data Grid server as follows:
    datagrid.address=test1
    
    Copy to Clipboard Toggle word wrap

    Note

    If the JBoss Data Grid server is running on a localhost address with defined port-offset, modify the jdg.properties file to include the port information. For example:
    datagrid.address=localhost
    datagrid.hotrod.port=11322
    
    Copy to Clipboard Toggle word wrap
  5. Build your Application

    Use the following command to build your application in the relevant directory:
    $ mvn clean package -Premote
    
    Copy to Clipboard Toggle word wrap
Torna in cima
Red Hat logoGithubredditYoutubeTwitter

Formazione

Prova, acquista e vendi

Community

Informazioni sulla documentazione di Red Hat

Aiutiamo gli utenti Red Hat a innovarsi e raggiungere i propri obiettivi con i nostri prodotti e servizi grazie a contenuti di cui possono fidarsi. Esplora i nostri ultimi aggiornamenti.

Rendiamo l’open source più inclusivo

Red Hat si impegna a sostituire il linguaggio problematico nel codice, nella documentazione e nelle proprietà web. Per maggiori dettagli, visita il Blog di Red Hat.

Informazioni su Red Hat

Forniamo soluzioni consolidate che rendono più semplice per le aziende lavorare su piattaforme e ambienti diversi, dal datacenter centrale all'edge della rete.

Theme

© 2025 Red Hat