Este conteúdo não está disponível no idioma selecionado.
14.5. The (Non-transactional) CarMart Quickstart in Remote Client-Server Mode (JBoss EAP)
14.5.1. Build and Deploy the CarMart Quickstart in Remote Client-Server Mode Copiar o linkLink copiado para a área de transferência!
Important
Prerequisites for this procedure are as follows:
- Obtain the most recent supported JBoss Data Grid Remote Client-Server Mode distribution files from Red Hat.
- 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
- Select a JBoss server to use (JBoss Enterprise Application Platform 6 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
$JBOSS_HOME/bin/standalone.shCopy to Clipboard Copied! Toggle word wrap Toggle overflow For Windows users:$JBOSS_HOME\bin\standalone.bat
$JBOSS_HOME\bin\standalone.batCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Procedure 14.7. Build and Deploy the CarMart Quickstart in Remote Client-Server Mode
Configure the Standalone File
Add the following configuration to thestandalone.xmlfile located in the$JDG_HOME/standalone/configuration/directory.- Add the following configuration within the infinispan subsystem tags:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Note
If thecarcacheelement already exists in your configuration, replace it with the provided configuration.
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
$JDG_HOME/bin/standalone.sh -Djboss.socket.binding.port-offset=100Copy to Clipboard Copied! Toggle word wrap Toggle overflow Start the JBoss Server
Run the following script to start the JBoss server instance where your application will deploy:$JBOSS_HOME/bin/standalone.sh
$JBOSS_HOME/bin/standalone.shCopy to Clipboard Copied! Toggle word wrap Toggle overflow Optional: Specify the Host and Port Address
The application uses the values in thejboss-datagrid-{VERSION}-quickstarts/carmart/src/main/resources/META-INF/datagrid.propertiesfile 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
datagrid.host=localhost datagrid.hotrod.port=11322Copy to Clipboard Copied! Toggle word wrap Toggle overflow Navigate to the Root Directory
Open a command line and navigate to the root directory of this quickstart.Build and Deploy the Application
Use the following command to build and deploy your application using Maven:mvn clean package jboss-as:deploy -Premote-jbossas
$ mvn clean package jboss-as:deploy -Premote-jbossasCopy to Clipboard Copied! Toggle word wrap Toggle overflow
14.5.2. View the CarMart Quickstart in Remote Client-Server Mode Copiar o linkLink copiado para a área de transferência!
The CarMart quickstart must be built and deployed be viewed.
Procedure 14.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
http://localhost:8080/jboss-carmartCopy to Clipboard Copied! Toggle word wrap Toggle overflow
14.5.3. Remove the CarMart Quickstart in Remote Client-Server Mode Copiar o linkLink copiado para a área de transferência!
Procedure 14.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 jboss-as:undeploy -Premote-jbossas
$ mvn jboss-as:undeploy -Premote-jbossasCopy to Clipboard Copied! Toggle word wrap Toggle overflow