13.4. The (Non-transactional) CarMart Quickstart Using JBoss Enterprise Web Server
13.4.1. Build and Deploy the CarMart Quickstart to JBoss Enterprise Web Server Copy linkLink copied to clipboard!
Prerequisites for this procedure are as follows:
- 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 JBoss Enterprise Web Server 2 (or better) for your application and install it.
Procedure 13.4. Build the CarMart Quickstart to the Server (Library Mode)
Start the Server
Run the selected server by navigating to the root directory in a terminal window and enter the following command:For Linux users:$JBOSS_EWS_HOME/tomcat7/bin/catalina.sh run
$JBOSS_EWS_HOME/tomcat7/bin/catalina.sh runCopy to Clipboard Copied! Toggle word wrap Toggle overflow For Windows users:$JBOSS_EWS_HOME\tomcat7\bin\catalina.bat run
$JBOSS_EWS_HOME\tomcat7\bin\catalina.bat runCopy to Clipboard Copied! Toggle word wrap Toggle overflow Build and Deploy your Application
Use the following command to build and deploy your application using Maven:mvn -Plibrary-tomcat clean package tomcat:deploy
$ mvn -Plibrary-tomcat clean package tomcat:deployCopy to Clipboard Copied! Toggle word wrap Toggle overflow
The target war file (target/jboss-carmart.war) is deployed to the running instance of the selected server.
13.4.2. View the CarMart Quickstart Using JBoss Enterprise Web Server Copy linkLink copied to clipboard!
The CarMart quickstart must be built and deployed to be viewed.
Procedure 13.5. View the CarMart Quickstart
- To view the application, use your browser to navigate to the following link:
http://localhost:8080/jboss-carmart
http://localhost:8080/jboss-carmartCopy to Clipboard Copied! Toggle word wrap Toggle overflow
13.4.3. Remove the CarMart Quickstart from JBoss Enterprise Web Server Copy linkLink copied to clipboard!
Procedure 13.6. Remove an Application from JBoss Enterprise Web Server
- To remove an application, use the following command:
mvn tomcat:undeploy -Plibrary-tomcat
$ mvn tomcat:undeploy -Plibrary-tomcatCopy to Clipboard Copied! Toggle word wrap Toggle overflow