Ce contenu n'est pas disponible dans la langue sélectionnée.
15.4. The (Non-transactional) CarMart Quickstart Using JBoss Enterprise Web Server
15.4.1. Build and Deploy the CarMart Quickstart to JBoss Enterprise Web Server Copier lienLien copié sur presse-papiers!
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 3 (or better) for your application and install it.
Procedure 15.4. Build the CarMart Quickstart to the Server (Library Mode)
Start the Server
Depending on your operating system, use the appropriate command from the following to start the first instance of your selected application server:For Linux users:$JBOSS_EWS_HOME/tomcat8/bin/catalina.sh runFor Windows users:$JBOSS_EWS_HOME\tomcat8\bin\catalina.bat runNavigate to the Root Directory
Open a command line and navigate to the root directory of this quickstart.Build and Deploy your Application
Use the following command to build and deploy your application using Maven:$ mvn -Plibrary-tomcat clean package tomcat:deploy
The target war file (target/jboss-carmart.war) is deployed to the running instance of the selected server.
15.4.2. View the CarMart Quickstart Using JBoss Enterprise Web Server Copier lienLien copié sur presse-papiers!
The CarMart quickstart must be built and deployed to be viewed.
Procedure 15.5. View the CarMart Quickstart
- To view the application, use your browser to navigate to the following link:
http://localhost:8080/jboss-carmart
15.4.3. Remove the CarMart Quickstart from JBoss Enterprise Web Server Copier lienLien copié sur presse-papiers!
Procedure 15.6. Remove an Application from JBoss Enterprise Web Server
- To remove an application, use the following command from the root directory of this quickstart:
$ mvn -Plibrary-tomcat tomcat:undeploy