15.7. The (Transactional) CarMart Quickstart Using JBoss EAP


This CarMart Transactional quickstart requires JBoss Data Grid's Library mode with the JBoss Enterprise Application Platform container.
All required libraries (jar files) are bundled with the application and deployed to the server. Caches are configured programmatically and run in the same JVM as the web application.
All operations are transactional and are configured at JBossASCacheContainerProvider/TomcatCacheContainerProvider implementation classes for the CacheContainerProvider interface.

15.7.1. Quickstart Prerequisites

The prerequisites for this quickstart are as follows:
Prerequisites

Ensure that the following prerequisites are met before building and deploying the CarMart quickstart.

  1. Start JBoss Enterprise Application Platform:
    1. In a command line terminal, navigate to the root of the JBoss EAP server directory.
    2. Use one of the following commands to start the server with a web profile:
      For Linux:
      $JBOSS_HOME/bin/standalone.sh
      Copy to Clipboard Toggle word wrap
      For Windows:
      %JBOSS_HOME%\bin\standalone.bat
      Copy to Clipboard Toggle word wrap

Procedure 15.13. Build and Deploy the Transactional Quickstart

  1. Open a command line and navigate to the root directory of this quickstart.
  2. Enter the following command to build and deploy the archive:
    mvn clean package wildfly:deploy
    Copy to Clipboard Toggle word wrap
  3. The target/jboss-carmart-tx.war file is deployed to the running instance of the server.

15.7.3. View the Transactional CarMart Quickstart

The following procedure outlines how to view the CarMart quickstart:
Prerequisite

The CarMart quickstart must be built and deployed to be viewed.

Procedure 15.14. View the CarMart Quickstart

  • To view the application, use your browser to navigate to the following link:
    http://localhost:8080/jboss-carmart-tx
    Copy to Clipboard Toggle word wrap
Undeploy the transactional CarMart quickstart as follows:
  1. In a command line terminal, navigate to the root directory of the quickstart.
  2. Undeploy the archive as follows:
    mvn wildfly:undeploy
    Copy to Clipboard Toggle word wrap

15.7.5. Test the Transactional CarMart Quickstart

The JBoss Data Grid quickstarts include Arquillian Selenium tests. To run these tests:
  1. Stop JBoss EAP, if it is running.
  2. In a command line terminal, navigate to root directory for the quickstart.
  3. Build the quickstarts as follows:
    mvn clean package
    Copy to Clipboard Toggle word wrap
  4. Run the tests as follows:
    mvn test -Puitests-eap -Das7home=/path/to/server
    Copy to Clipboard Toggle word wrap
Back to top
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2025 Red Hat