node-modules / js-remoting-for-apache-dubbo Goto Github PK
View Code? Open in Web Editor NEWdubbo protocol implement
License: Apache License 2.0
dubbo protocol implement
License: Apache License 2.0
你好, 请问下 Invocation 中的 attachments 跟下面这个文档里 隐式传参 中的上下文 attachments 是一个概念吗?
http://dubbo.io/User+Guide-zh.htm#UserGuide-zh-%E9%9A%90%E5%BC%8F%E4%BC%A0%E5%8F%82
// sofa-rpc-node/lib/client/consumer.js 中
async _init() {
this._addressGroup = this.createAddressGroup(this.id + '@' + this.group);
if (this.options.serverHost) {
const addressList = this.options.serverHost.split(',').map(url => this.parseUrl(url));
setImmediate(() => { this._addressGroup.addressList = addressList; });
} else {
await this.registry.ready();
this._addressGroup = this.createAddressGroup(this.id + '@' + this.group);
this._addressListener = addressList => {
// addressList 为 []
this._addressGroup.addressList = addressList.map(url => this.parseUrl(url));
};
this.registry.subscribe(this.registryConfig, this._addressListener);
}
await this._addressGroup.ready();
}
async getConnection(req) {
return await this._addressGroup.getConnection(req);
}
时返回 null
想知道为什么 addressList 为空?
集成 dubbo 时,直连服务是可以的,但是通过注册中心就不成功了
还有 group 的设置貌似不成功,直连的时候我需要将 group 名字写在 interfaceName 里面才行,单独配置 group 或者在初始化 client 时设置 group 都不成功
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.