第9章 Run Red Hat JBoss Data Grid in Library Mode
9.1. Run Red Hat JBoss Data Grid in Library Mode リンクのコピーリンクがクリップボードにコピーされました!
This part includes information about using Red Hat JBoss Data Grid in Library Mode.
- As a prerequisite for the subsequent chapters, set up a new project using the instructions in Create a New Red Hat JBoss Data Grid.
- Next, use JBoss Data Grid either as an embedded cache (see Run Red Hat JBoss Data Grid in Library Mode (Single-Node Setup) for more information) or as a clustered cache (see Run Red Hat JBoss Data Grid in Library Mode (Multi-Node Setup). Each tutorial is based on an Infinispan quickstart.
- Finally, monitor Red Hat JBoss EAP applications using JBoss Data Grid using the instructions in Monitor Red Hat JBoss Data Grid Applications in Red Hat JBoss EAP.
9.2. Create a New Red Hat JBoss Data Grid Project リンクのコピーリンクがクリップボードにコピーされました!
This chapter is a guide to creating a new Red Hat JBoss Data Grid project. The tasks prescribed are a prerequisite for the quickstart tasks provided in Run Red Hat JBoss Data Grid in Library Mode (Single-Node Setup) and Run Red Hat JBoss Data Grid in Library Mode (Multi-Node Setup)
9.3. Add Dependencies to Your Project リンクのコピーリンクがクリップボードにコピーされました!
Set up Red Hat JBoss Data Grid by adding dependencies to your project. If you are using Maven or other build systems that support Maven dependencies, add the following to your pom.xml file, located in the Maven repository folder:
<dependency>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-embedded</artifactId>
<version>$VERSION</version>
</dependency>
<dependency>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-embedded</artifactId>
<version>$VERSION</version>
</dependency>
Replace the version value with the appropriate version of the libraries included in JBoss Data Grid.
9.4. Add a Profile to Your Project リンクのコピーリンクがクリップボードにコピーされました!
To enable the JBoss Maven repository for your project, add a profile to your settings.xml file in $HOME/.m2/settings.xml as follows:
Adding a Profile
Enable the profile by ensuring the following is included in the settings.xml file:
Enable the Profile
<activeProfiles>
<!-- Optionally, make the repositories active by default -->
<activeProfile>jboss-ga-repository</activeProfile>
<activeProfile>jboss-earlyaccess-repository</activeProfile>
</activeProfiles>
<activeProfiles>
<!-- Optionally, make the repositories active by default -->
<activeProfile>jboss-ga-repository</activeProfile>
<activeProfile>jboss-earlyaccess-repository</activeProfile>
</activeProfiles>
If you are using a build system that does not support declarative dependency management, add the contents of the client/java/ directory, included in the Red Hat JBoss Data Grid package to the build classpath.