4.6. Running Red Hat JBoss Data Grid in Karaf (OSGi)
4.6.1. Running a Deployment of JBoss Data Grid in Karaf (Remote Client-Server)
features
file, located in org/infinispan/infinispan-client-hotrod/${VERSION}
. This file lists all dependencies for the Hot Rod client in OSGi, while also making it simpler to install the feature into Karaf (version 2.3.3 or 3.0).
4.6.2. Installing the Hot Rod client feature in Karaf
Configure the Red Hat JBoss Data Grid Maven Repository.
Procedure 4.3. Install the Hot Rod Feature in Karaf
Karaf 2.3.3
For Karaf 2.3.3 use the following commands:karaf@root> features:addUrl mvn:org.infinispan/infinispan-client-hotrod/${VERSION}/xml/features
karaf@root> features:install hotrod-client
- Verify that the feature was successfully installed as follows:
karaf@root> features:list //output
Karaf 3.0.0
For Karaf use the following commands.karaf@root> feature:repo-add mvn:org.infinispan/infinispan-client-hotrod/${VERSION}/xml/features
karaf@root> feature:install hotrod-client
- Verify that the feature was successfully installed:
karaf@root> feature:list
Alternatively, use the-i
command parameter to install the Hot Rod Client feature using the following:karaf@root()> feature:repo-add -i mvn:org.infinispan/infinispan-client-hotrod/${VERSION}/xml/features
4.6.3. Installing Red Hat JBoss Data Grid in Karaf (Library Mode)
features
file, which defines all required dependencies.
features
file:
- Register the feature repositories inside Karaf.
- Install the features contained in the repositories.
Procedure 4.4. Installing bundles using the features
file
Start the Karaf console
Start the Karaf console using the following commands:$ cd $APACHE_KARAF_HOME/bin $ ./karaf
Register a feature repository
Register a feature repository as follows:- For Karaf 2.3.3:
karaf@root()> features:addUrl mvn:org.infinispan/infinispan-core/${VERSION}/xml/features
- For Karaf 3.0.0:
karaf@root()> feature:repo-add mvn:org.infinispan/infinispan-core/${VERSION}/xml/features
List and Install the Available Features (Karaf 3.0.0)
- Get the list of available features using the following:
karaf@root()> features:list
- Install the available features.
karaf@root()> features:install
Alternatively, pass the-i
command parameter to thefeature:repo-add
command. This installs all the features defined in that repository. For example:karaf@root()> feature:repo-add -i mvn:org.infinispan/infinispan-core/${VERSION}/xml/features
JBoss Data Grid runs in library mode using Karaf.
karaf@root()> feature:repo-add -i mvn:org.infinispan/infinispan-cachestore-leveldb/${VERSION}/xml/features
mvn:<groupId>/<artifactId>/<version>/xml/features
4.6.4. Feature Repositories
- infinispan-commons
- infinispan-core
- infinispan-cachestore-jdbc
- infinispan-cachestore-leveldb
- infinispan-cachestore-remote
- infinispan-client-hotrod
Important
Important