commit | 8e8b079891bfbc7b2a6b483e700c312113f4cb5f | [log] [tgz] |
---|---|---|
author | DLive <xsxgmail@163.com> | Thu May 16 23:34:09 2019 +0800 |
committer | DLive <xsxgmail@163.com> | Thu May 16 23:34:09 2019 +0800 |
tree | 5fa47bff59a92681fd79f078e0f40268636d88b7 | |
parent | aea1facd9cf9cc7f9427329473662d8b5963e489 [diff] |
change license
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().
Call the interface method.
RequestPara = #testReq{name = <<"nameinfo">>,nick = <<"nickinfo">>,age = 10}, iProcessData:queryinfo(Info).
Reference the demo project dubboerl_demo
Reference Docs