Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
5.3. Remote Query
When executing remote queries the cacheManager must be an instance of
RemoteCacheManager, and an example configuration utilizing a RemoteCacheManager is found below for both Java and blueprint.xml:
Using only Java
Using Blueprint and Java
Java RemoteCacheManagerFactory class:
InfinispanQueryExample class:
The
remote_query_cache is an arbitrary name for a cache that holds the data, and the results of the query will be a list of domain objects stored as a CamelInfinispanOperationResult header.
In addition, there are the following requirements:
- The
RemoteCacheManagermust be configured to useProtoStreamMarshaller. - The
ProtoStreamMarshallermust be registered with theRemoteCacheManager's serialization context. - The .proto descriptors for domain objects must be registered with the remote JBoss Data Grid server.
For more details on how to setup a
RemoteCacheManager, see the Remote Querying section of the Red Hat JBoss Data Grid Infinispan Query Guide.