commit | 4571ffa71340ec5ff6ea6a42872631cc70505081 | [log] [tgz] |
---|---|---|
author | DLive <xsxgmail@163.com> | Sat Apr 20 22:01:36 2019 +0800 |
committer | DLive <xsxgmail@163.com> | Sat Apr 20 22:01:36 2019 +0800 |
tree | 8f3141c6c60b69af81a56c4e550b33e34166a311 | |
parent | fb2a6fb788a145ee8080a7b2a544f89ba2a87927 [diff] |
add some step
A Erlang framework for dubbo.
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,[]).
Sample
Reference the demo project dubboerl_demo