omnip620 / node-zookeeper-dubbo

A middleware helps node to communicate dubbo by using its default protocol, which is registered in zookeeper
300 stars 80 forks source link

Exception: CONNECTION_LOSS #44

Open jizhuofeng opened 7 years ago

jizhuofeng commented 7 years ago

服务运行期间 出现异常CONNECTION_LOSS: Exception: CONNECTION_LOSS[-4]。。。 然后再调用请求会提示method not function. 应用如何捕获 该异常, 如何处理异常。

jizhuofeng commented 7 years ago

const nzd = require('node-zookeeper-dubbo'); const options = { 。。。 } options.java = require('js-to-java');

const dubbo = new nzd(options);

exports = module.exports = dubbo;

这样全局共享该实例, 当出现链接丢失时如何处理。