Ce contenu n'est pas disponible dans la langue sélectionnée.
4.2. Deploy JBoss Data Grid in JBoss EAP (Remote Client-Server Mode)
Note
- Add a dependency to the
jboss-deployment-structure.xmlfile. - Add a dependency to the
MANIFEST.MFfile.
Add the following configuration to the jboss-deployment-structure.xml file:
Note
jboss-deployment-structure.xml file, see the Red Hat JBoss Enterprise Application Platform documentation.
Add a dependency to the MANIFEST.MF files as follows:
Example 4.2. Example MANIFEST.MF File
Manifest-Version: 1.0 Dependencies: org.infinispan.commons:jdg-7.0 services, org.infinispan.client.hotrod:jdg-7.0 services
Manifest-Version: 1.0
Dependencies: org.infinispan.commons:jdg-7.0 services, org.infinispan.client.hotrod:jdg-7.0 services
- Basic Hot Rod client:
org.infinispan.commons:jdg-7.0 services, org.infinispan.client.hotrod:jdg-7.0 services
org.infinispan.commons:jdg-7.0 services, org.infinispan.client.hotrod:jdg-7.0 servicesCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Hot Rod client with Remote Query functionality:
org.infinispan.commons:jdg-7.0 services, org.infinispan.client.hotrod:jdg-7.0 services, org.infinispan.query.dsl:jdg-7.0 services, org.jboss.remoting3
org.infinispan.commons:jdg-7.0 services, org.infinispan.client.hotrod:jdg-7.0 services, org.infinispan.query.dsl:jdg-7.0 services, org.jboss.remoting3Copy to Clipboard Copied! Toggle word wrap Toggle overflow
4.2.1. Using Custom Classes with the Hot Rod client Copier lienLien copié sur presse-papiers!
- Option 1: Reference the deployment's class loader in the configuration builder for the Hot Rod client, as seen in the below example:
Example 4.3. Referencing the custom class loader in the ConfigurationBuilder instance
import org.infinispan.client.hotrod.configuration.ConfigurationBuilder; [...] ConfigurationBuilder config = new ConfigurationBuilder(); config.marshaller(new GenericJBossMarshaller(Thread.currentThread().getContextClassLoader()));
import org.infinispan.client.hotrod.configuration.ConfigurationBuilder; [...] ConfigurationBuilder config = new ConfigurationBuilder(); config.marshaller(new GenericJBossMarshaller(Thread.currentThread().getContextClassLoader()));Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Option 2: Install the custom classes as their own module within JBoss EAP, and add a dependency on the newly created module should be added to the JBoss Data Grid module at
${EAP_HOME}/modules/system/layers/base/org/infinispan/commons/jdg-6.x/module.xml.