commit | a30e5af82690e81f62899889bab422cbba4d86d6 | [log] [tgz] |
---|---|---|
author | DLive <xsxgmail@163.com> | Fri May 24 17:57:35 2019 +0800 |
committer | DLive <xsxgmail@163.com> | Fri May 24 17:57:35 2019 +0800 |
tree | 637f179647cfd9629199929ce68ccee1fc5f2d20 | |
parent | 2d993711afa444a550f8d8a37818ae5bde95a4ac [diff] |
change eunit dep demo module
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