commit | 91faffcf749b1abd4610580fe38ea5ad81bc0e61 | [log] [tgz] |
---|---|---|
author | DLive <xsxgmail@163.com> | Thu Jun 27 18:58:29 2019 +0800 |
committer | DLive <xsxgmail@163.com> | Thu Jun 27 18:58:29 2019 +0800 |
tree | 1bfe0b9c80751053e016e4dca26ed4028b411c4d | |
parent | a5a0cde2469b17b3fc2e710de8c395ac97b8d2c1 [diff] | |
parent | cdfcff9962dad903d794f98fbdd2dcef4cac2ec5 [diff] |
merge form master
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