commit | b05a77652b70a958d5a83c6e7d4581d131ccfb26 | [log] [tgz] |
---|---|---|
author | Dlive <xsxgmail@163.com> | Mon Apr 22 19:20:37 2019 +0800 |
committer | GitHub <noreply@github.com> | Mon Apr 22 19:20:37 2019 +0800 |
tree | 5c929834e8f34815d4626d2e084698994c6649f2 | |
parent | 50126a27defe320e167589ce5d90fdba00f6c50a [diff] | |
parent | 67f12f33b1da1e5c67ba73f3158c6ac93aa2ba6e [diff] |
Merge pull request #2 from dubboerl/0.3.0 0.3.0
Apache Dubbo Erlang Implementation.
The following features are supported.
Add dubblerl to rebar.config with your project
{deps, [ {dubboerl, {git, "http://github.com/dubboerl/dubboerl.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,[ {<<"me.dlive.dubboservice.service.IProcessData">>,[]} ]}, {provider,[ {scherdule_impl,scherdule_behaviour,<<"me.dlive.dubboservice.service.Scherdule">>,[]} ]} ]}
Init dubboerl application context when your project start.
dubboerl:init().
Do your interface method invoker.
RequestPara = #testReq{name = <<"nameinfo">>,nick = <<"nickinfo">>,age = 10}, iProcessData:queryinfo(Info,[]).
Reference the demo project dubboerl_demo