Installation of JDG in Library Mode within EAP

From NovaOrdis Knowledge Base
Revision as of 16:38, 4 May 2017 by Ovidiu (talk | contribs)
Jump to navigation Jump to search

External

Internal

Overview

This article describes the installation procedure that results in a JDG cluster instance collocated with an EAP cluster. The JDG is deployed in library mode. The JDG libraries will be deployed as a set of modules, accessible to the application. The application will control the JDG cluster configuration. TODO: more on this..

Relevance

  • JDG 7.0

Module Installation

Deploy

Extract jboss-datagrid-7.0.0-eap-modules-remote-java-client.zip in a staging area.


remote client/server mode needs a significantly smaller dependency tree than the library mode, so make sure jboss-datagrid-7.0.0-eap-modules-remote-java-client.zip and not jboss-datagrid-7.0.0-eap-modules-library.zip is used.

Move the content of ./jboss-datagrid-7.0.0-eap-modules-remote-java-client/modules directory (which should consist in an "org" subdirectory) in $JBOSS_HOME/modules.

cd ./jboss-datagrid-7.0.0-eap-modules-remote-java-client/modules
mv org $JBOSS_HOME/modules

The integration module will be available as "org.infinispan.client.hotrod", slot "jdg-7.0".

Configure

Declare the "org.infinispan.commons" dependency module as "exported", to allow access to basic Infinisipan types from your deployments.

<module xmlns="urn:jboss:module:1.1" name="org.infinispan.client.hotrod" slot="jdg-7.0">
    ...

    <dependencies>
        ...
        <module name="org.infinispan.commons" slot="jdg-7.0" export="true"/>
        ...
    </dependencies>
</module>

For more details on module.xml "export" option see:

module.xml

Usage

For an example of how to use JDG in remote client/server mode, see:

JDG Remote Client-Server Mode Usage Example