commit | 97fc0a6ecaf6a5d94237938486a5b363c25e86c2 | [log] [tgz] |
---|---|---|
author | DLive <xsxgmail@163.com> | Tue May 07 01:06:24 2019 +0800 |
committer | DLive <xsxgmail@163.com> | Tue May 07 01:06:24 2019 +0800 |
tree | ff6b6fbdca4a2513f6658a777e0834eddce38808 | |
parent | b8f2a68e7d5873c96c477b1c4fade2a1e47fec65 [diff] |
feature: add request content adapter
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