commit | e91b05ee079439306f7d1d27f14d027a61bd9ce5 | [log] [tgz] |
---|---|---|
author | DLive <xsxgmail@163.com> | Thu Aug 01 20:14:09 2019 +0800 |
committer | DLive <xsxgmail@163.com> | Thu Aug 01 20:14:09 2019 +0800 |
tree | 342f450d1c9ffb5f5a6861c5bd2a85ebcb0e2c4e | |
parent | 4c19f0bbc0b6979d76ddbfee41d651c9ed2dfe05 [diff] |
optimize code & del unused code
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