I just started learning Dubbo recently. Yestday,I uesd the 
ServiceConfig.getExportedUrls() and got the addree URL of provider,and I want 
get the address URL of consumer by dubbo api, can you help me,thanks!


the code I use:
Provider:ServiceConfig<IQueryUserInfoService> service = new 
ServiceConfig<IQueryUserInfoService>(); // 
??????????????????????????????????????????????????????????????????????????
service.setApplication(application);
service.setRegistry(registry); // ??????????????????setRegistries()
service.setProtocol(protocol); // ??????????????setProtocols()
service.setInterface(IQueryUserInfoService.class);
service.setRef(xxxService);
service.setVersion("1.0.0");
// ??????????????
service.export();
System.out.println(service.getExportedUrls());Consumer:ReferenceConfig 
reference = build(registryUrl, dubboElementTuple.serviceName, 
dubboElementTuple.groupName, dubboElementTuple.version);
reference.get();

Reply via email to