Installation of JDG in Library Mode within EAP
External
- Deploy JDG in EAP - Library Mode https://access.redhat.com/documentation/en-us/red_hat_jboss_data_grid/7.1/html/getting_started_guide/using_jboss_data_grid_with_supported_containers#deploy_jdg_in_jboss_eap_remote_client_server_mode
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:
Usage
For an example of how to use JDG in remote client/server mode, see: