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 Copia collegamentoCollegamento copiato negli appunti!
Obtain the supported JBoss Data Grid Library Mode distribution files.
Procedure 9.7. Build the CarMart Quickstart in Remote Client-Server Mode
Configure the Standalone File
Add the following configuration to thestandalone.xml
file located in the$JDG_HOME/standalone/configuration/
directory.- Add the following configuration after the closing tags for the <
system-properties
> element:<paths> <path name="temp" path="/tmp"/> </paths>
<paths> <path name="temp" path="/tmp"/> </paths>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Add the following configuration within the infinispan subsystem tags:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Start the JBoss Data Grid Server
Run the following script to start the JBoss Data Grid Server:$JDG_HOME/bin/standalone.sh
$JDG_HOME/bin/standalone.sh
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Note
Using the provided configurations, the server runs on thetest1
address.Configure test1 for UNIX Users
Configure thetest1
address on a UNIX system by adding the following line to/etc/hosts
:192.168.11.101 test1
192.168.11.101 test1
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 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
$ sudo ifconfig eth0:1 192.168.11.101 netmask 255.255.255.0
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
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
$JDG_HOME/bin/standalone.sh
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Specify the JBoss Data Grid Server Address
Edit thejdg.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
datagrid.address=test1
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Note
If the JBoss Data Grid server is running on alocalhost
address with defined port-offset, modify thejdg.properties
file to include the port information. For example:datagrid.address=localhost datagrid.hotrod.port=11322
datagrid.address=localhost datagrid.hotrod.port=11322
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Build your Application
Use the following command to build your application in the relevant directory:mvn clean package -Premote
$ mvn clean package -Premote
Copy to Clipboard Copied! Toggle word wrap Toggle overflow