commit | 1612105a607d7fd14af8b357487f4d3c9661f25f | [log] [tgz] |
---|---|---|
author | Huxing Zhang <huxing.zhang@gmail.com> | Wed May 22 09:50:52 2019 +0800 |
committer | GitHub <noreply@github.com> | Wed May 22 09:50:52 2019 +0800 |
tree | 4caefb75d74c170191940de11e1d0f91785d0295 | |
parent | f35e24648ea49253622218ba35eeea0e34925330 [diff] | |
parent | 685b3885865b0bdfa28ad834245ca0ad595ee732 [diff] |
Merge pull request #5 from DLive/master Add license header to source code
Apache Dubbo Erlang Implementation.
The following features are supported.
Add dubblerl to rebar.config with your project
{deps, [ {dubboerl, {git, "https://github.com/apache/incubator-dubbo-erlang.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,[ {<<"org.apache.dubbo.erlang.sample.service.facade.UserOperator">>,[]} ]}, {provider,[ {user_impl,userOperator,<<"org.apache.dubbo.erlang.sample.service.facade.UserOperator">>,[]} ]} ]}
Init dubboerl application context when your project start.
dubboerl:init().
Call the interface method.
Request = #userInfoRequest{requestId = 123, username = "testname"}, userOperator:queryUserInfo(Request,#{sync=> true}).
Reference the demo project dubboerl_demo
Reference Docs