cwt9562 commented on issue #2181: Unsupported protocol hessian when using API 
Configuration and Generic Reference
URL: 
https://github.com/apache/incubator-dubbo/issues/2181#issuecomment-410415688
 
 
   @chickenlj 
   I'm using Generic Reference, so my code like this:
   
   ```
       private GenericService getGenericService(String interfaceName) {
           ReferenceConfig<GenericService> reference = new ReferenceConfig<>();
           reference.setApplication(getApplicationConfig());
           reference.setRegistry(getRegistryConfig());
           reference.setProtocol("dubbo,hessian");
           reference.setConsumer(getConsumerConfig());
           reference.setInterface(interfaceName);
           reference.setGeneric(true);
           return reference.get();
       }
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to