Installation of JDG in Remote Client-Server Mode within EAP

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

External

Internal

Relevance

  • JDG 7.0

Overview

JDG comes with a set of modules ready to be deployed in EAP. 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).

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