이 콘텐츠는 선택한 언어로 제공되지 않습니다.
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
RemoteCacheManager
must be configured to useProtoStreamMarshaller
. - The
ProtoStreamMarshaller
must 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.