commit | 71eeca7dd00fa9f1451ec73c94fe75ccef64c952 | [log] [tgz] |
---|---|---|
author | Huxing Zhang <huxing.zhang@gmail.com> | Tue Jun 18 09:44:50 2019 +0800 |
committer | GitHub <noreply@github.com> | Tue Jun 18 09:44:50 2019 +0800 |
tree | c90d5f5e36bae55d7346fd3f69fcd10f443acdc2 | |
parent | 03010f16d6fe8997c3d2c6143d5aa0ae7bff9e74 [diff] | |
parent | 57f5e2736610c94b9cc176a75942f8d9daef354a [diff] |
Merge pull request #10 from DLive/issue-template Add issue template
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