Installation of JDG in Library Mode within EAP

From NovaOrdis Knowledge Base
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. To avoid conflicts with the Infinispan modules that are already included with EAP, JDG modules must be placed in a separate slot and identified by the JDG version (major.minor). 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-library.zip in a staging area. Move the content of ./jboss-datagrid-7.0.0-eap-modules-library/modules directory (which should consist in an "org" and an "javax" subdirectory) in $JBOSS_HOME/modules.

cd ./jboss-datagrid-7.0.0-eap-modules-library/modules
mv org javax $JBOSS_HOME/modules

The integration module will be available as "org.infinispan", 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 library mode see:

JDG in Library Mode Usage Example