crazyStar00 commented on issue #13980: URL: https://github.com/apache/dubbo/issues/13980#issuecomment-2026405781
> > ```proto > > option java_package = "org.apache.dubbo.demo.tri.grpc"; > > package pkg; > > ``` > > > > > > > > > > > > > > > > > > > > > > > > org/apache/dubbo/rpc/protocol/tri/TripleInvoker.java:303 > > 获取服务是从url里get到的路径和JAVA_SERVICE_NAME(org.apache.dubbo.demo.tri.grpc.Greeter) > > `meta.service = url.getPath();` > > 修改为实际的SERVICE_NAME(pkg.Greeter)后请求正常: > >  > > 考虑在url里维护SERVICE_NAME,构建请求时就可以了 > > 想了想,希望这样并不行,这是在dubbo客户端调用不适用于grpc服务器的情况下,才需要SERVICE_NAME,如果是调用dubbo三重服务器,还是使用JAVA_SERVICE_NAME的 或者说,从原生grpc服务不会注册到注册中心考虑,判断没有走注册中心,是直连的,就用SERVICE_NAME,否则用JAVA_SERVICE_NAME -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
