crazyStar00 commented on issue #13980: URL: https://github.com/apache/dubbo/issues/13980#issuecomment-2026408909
> > > ```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 主要是我们公司考虑将原生的grpc服务实例信息,通过手动的方式写入zk,这样,对java dubbo 客户端来说,就不用考虑是否原生的grpc服务了,使用都是一样的。 -- 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: notifications-unsubscr...@dubbo.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For additional commands, e-mail: notifications-h...@dubbo.apache.org