Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
7.2. Performing Remote Queries via the Hot Rod Java Client
RemoteCacheManager has been configured with the Protobuf marshaller.
RemoteCacheManager must be configured to use the Protobuf Marshaller.
Procedure 7.1. Enabling Remote Querying via Hot Rod
Add All Relevant Dependencies
See theinfinispan-client-hotroddependencies in theruntime-classpath.txtfile in the JBoss Data Grid Library distribution for a full list of required dependencies.Enable indexing on the cache configuration.
Indexing is not mandartory for Remote Queries, but it is highly recommended because it makes searches on caches that contain large amounts of data significantly faster. Indexing can be configured at any time. Enabling and configuring indexing is the same as for Library mode.Register the Protobuf Binary Descriptor
Register the Protobuf binary descriptor by invoking theregisterProtofilemethod of the server'sProtobufMetadataManagerMBean. There is one instance of this per cache container configuration element of the server.
All data placed in the cache is immediately searchable, whether or not indexing is in use. Entries do not need to be annotated, unlike embedded queries. The entity classes are only meaningful to the Java client and do not exist on the server.
QueryFactory can be obtained using the following:
Example 7.1. Obtaining the QueryFactory