commit | 92ffa38538b457370d8fa9baf0e69cdd9fbc84dc | [log] [tgz] |
---|---|---|
author | DLive <xsxgmail@163.com> | Wed May 15 13:51:04 2019 +0800 |
committer | DLive <xsxgmail@163.com> | Wed May 15 13:51:04 2019 +0800 |
tree | efd76b9b4549a36c9ccfa453c531edd60a6d57e0 | |
parent | 87d20d7fcc79885a755a016d4ba1e9bd6e9b2baa [diff] |
test: add json invoker test
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