Author: Kevin Pollet, Sebastian Laskawiec Level: Beginner Technologies: Infinispan, CDI Summary: Shows how to use Infinispan CDI extension together with JCache interceptors Target Product: JDG Product Versions: EAP 6.x, JDG 6.x Source: https://github.com/infinispan/jdg-quickstart
Infinispan might be integrated with a web application using CDI Extension.
Additionally this Quickstart uses JCache integration which makes accessing Cache much easier.
All you need to build this project is Java 7.0 (Java SDK 7.6) or better, Maven 3.0 or better.
The application this project produces is designed to be run on Red Hat JBoss Enterprise Application Platform (6.1 or later) or Wildfly.
If you have not yet done so, you must Configure Maven before testing the quickstarts.
-
Open a command line and navigate to the root of the EAP server directory.
-
The following shows the command line to start the server with the web profile:
For Linux: $JBOSS_HOME/bin/standalone.sh For Windows: %JBOSS_HOME%\bin\standalone.bat
NOTE: The following build command assumes you have configured your Maven user settings. If you have not, you must include Maven setting arguments on the command line. See Build and Deploy the Quickstarts for complete instructions and additional options.
-
Make sure you have started EAP as described above.
-
Open a command line and navigate to the root directory of this quickstart.
-
Type this command to build and deploy the archive:
mvn clean package jboss-as:deploy
-
This will deploy
target/infinispan-cdi.war
to the running instance of the server.
The application will be running at the following URL: http://localhost:8080/infinispan-cdi/
-
Make sure you have started EAP as described above.
-
Open a command line and navigate to the root directory of this quickstart.
-
When you are finished testing, type this command to undeploy the archive:
mvn jboss-as:undeploy
If you would like to test the application, there are a couple of unit tests designed to run on a remote EAP/Wildfly instance.
In order to run those test, please do the following steps:
-
Start EAP/Wildfly
-
Build the quickstart using:
mvn clean test -Pwildfly-remote