Questo contenuto non è disponibile nella lingua selezionata.
15.6. The (Non-Transactional) CarMart Quickstart in Remote Client-Server Mode (JBoss Enterprise Web Server)
15.6.1. Build and Deploy the CarMart Quickstart in Remote Client-Server Mode Copia collegamentoCollegamento copiato negli appunti!
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
- Add a
serverelement to the Mavensettings.xmlfile. In theidelements withinserver, add the appropriate tomcat credentials.<server> <id>tomcat</id> <username>admin</username> <password>admin</password> </server><server> <id>tomcat</id> <username>admin</username> <password>admin</password> </server>Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Procedure 15.10. 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 Container
Start the JBoss server instance where your application will deploy.For Linux:$JBOSS_EWS_HOME/tomcat8/bin/catalina.sh run
$JBOSS_EWS_HOME/tomcat8/bin/catalina.sh runCopy to Clipboard Copied! Toggle word wrap Toggle overflow For Windows:$JBOSS_EWS_HOME\tomcat8\bin\catalina.bat run
$JBOSS_EWS_HOME\tomcat8\bin\catalina.bat runCopy to Clipboard Copied! Toggle word wrap Toggle overflow Build the Application
Use the following command to build your application in the relevant directory:mvn clean package -Premote-tomcat
$ mvn clean package -Premote-tomcatCopy to Clipboard Copied! Toggle word wrap Toggle overflow Deploy the Application
Use the following command to deploy the application in the relevant directory:mvn tomcat:deploy -Premote-tomcat
mvn tomcat:deploy -Premote-tomcatCopy to Clipboard Copied! Toggle word wrap Toggle overflow
15.6.2. View the CarMart Quickstart in Remote Client-Server Mode Copia collegamentoCollegamento copiato negli appunti!
The CarMart quickstart must be built and deployed be viewed.
Procedure 15.11. 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
15.6.3. Remove the CarMart Quickstart in Remote Client-Server Mode Copia collegamentoCollegamento copiato negli appunti!
Procedure 15.12. Remove an Application in Remote Client-Server Mode
- To remove an application, use the following command from the root directory of this quickstart:
mvn tomcat:undeploy -Premote-tomcat
$ mvn tomcat:undeploy -Premote-tomcatCopy to Clipboard Copied! Toggle word wrap Toggle overflow