[ 
https://issues.apache.org/jira/browse/CAMEL-8244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14287267#comment-14287267
 ] 

Martin Gencur commented on CAMEL-8244:
--------------------------------------

Hi, I think that for remote querying to work properly, we also need to provide 
a way to register protobuf files. Currently this is what has to be done:
{code}
ProtoSchemaBuilder protoSchemaBuilder = new ProtoSchemaBuilder();
      String testSchemaFile = protoSchemaBuilder.fileName("test.proto")
            .addClass(Note.class)
            .build(ctx);

      // register schemas on server
      RemoteCache<String, String> metadataCache = 
manager.getCache(ProtobufMetadataManagerConstants.PROTOBUF_METADATA_CACHE_NAME);
      metadataCache.put("test.proto", testSchemaFile);
{code}

So a test.proto has to be built based on the classes we plan to use/query. And 
this file has to be put in the cache with specific name: 
ProtobufMetadataManagerConstants.PROTOBUF_METADATA_CACHE_NAME

Users can either call this in their own code or we can provide some easier way.

> Enhance the Infinispan module to add support for HotRod querying
> ----------------------------------------------------------------
>
>                 Key: CAMEL-8244
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8244
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-infinispan
>            Reporter: Tristan Tarrant
>            Assignee: Bilgin Ibryam
>
> HotRod 2.0 (included in Infinispan 7.0) has added support for remote 
> querying. The Camel Infinispan module should be enhanced to support this.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to