Author: Sebastian Łaskawiec Level: Intermediate Technologies: Infinispan, Spring Boot Summary: Shows how to use Infinispan or JBoss Data Grid with Spring Target Product: JDG Product Versions: JDG 6.x Source: https://github.com/infinispan/jdg-quickstart
Spring-jdg is an example that shows how to use Infinispan or JBoss Data Grid together with Spring.
In order to simplify the Spring bootstrapping this project uses Spring Boot. Infinispan/JBoss Data Grid is configured to use only default values.
More information might be found after running this quickstart and navigating to http://localhost:8080
All you need to build this project is Java 7.0 (Java SDK 1.7) or better, Maven 3.0 or better.
If you have not yet done so, you must Configure Maven before testing the quickstarts.
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.
Type this command to build the quickstart:
mvn clean package
Copy built archive to WildFly/JBoss EAP deployment directory (e.g. EAP/standalone/deployment). Navigate to http://localhost:8080 and follow the instructions in about page.
It is also possible to use Spring Boot Maven plugin and run the quickstarts using Embedded Tomcat. In order to do this, invoke the following command
mvn spring-boot:run
The application will be running at the following URLs: