commit | 1a13eb7a08621df9d401e8df28a2303fdd55e5a9 | [log] [tgz] |
---|---|---|
author | DLive <xsxgmail@163.com> | Mon Aug 05 19:17:42 2019 +0800 |
committer | DLive <xsxgmail@163.com> | Mon Aug 05 19:17:42 2019 +0800 |
tree | 519abd894ac070dc7918e54aa1edcebd86c78479 | |
parent | 3400d13662791df1adea51aa6af8cf00e7793302 [diff] |
change provider registry dynamic to false
Apache Dubbo Erlang Implementation.
The following features are supported.
Add dubblerl to rebar.config with your project
{deps, [ {dubboerl, {git, "https://github.com/apache/dubbo-erlang.git", {branch, "master"}}} ]}.
Use erlanalysis tool transfer java interface to erlang lib. And add the lib to you project app dir.
configure dubbo reference.
in sys.config add dubboerl config. For example:
{dubboerl,[ {zookeeper_list,[{"127.0.0.1",2181}]}, {application,<<"testdubboerl">>}, {consumer,[ {<<"org.apache.dubbo.erlang.sample.service.facade.UserOperator">>,[]} ]}, {provider,[ {user_impl,userOperator,<<"org.apache.dubbo.erlang.sample.service.facade.UserOperator">>,[]} ]} ]}
Init dubboerl application context when your project start.
dubboerl:init().
Call the interface method.
Request = #userInfoRequest{requestId = 123, username = "testname"}, userOperator:queryUserInfo(Request,#{sync=> true}).
Reference the demo project dubboerl_demo
Reference Docs