rename config dir
2 files changed
tree: 72533b1f5ab2cadc625e0bd6ed018b5e72f4ed0c
  1. .gitignore
  2. Developer.md
  3. LICENSE
  4. README.md
  5. config_example/
  6. include/
  7. rebar.config
  8. rebar3
  9. src/
  10. test/
README.md

dubboerl

A Erlang framework for dubbo.

Feature

  • 支持Zookeeper注册中心
  • 支持Hession serialize
  • 支持Consumer
  • 支持Provider
  • sync invoker
  • async invoker

Start

参考demo dubboerl_demo

Step1

Transfer java facede t o erlang lib and add to you project dir.

Step2

configure dubbo refernce

{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">>,[]}
	]}
	
]}

Step4

Init dubboerl application context

dubboerl:init().

Step5

Do your interface method invoker.

RequestPara = #testReq{name = <<"nameinfo">>,nick = <<"nickinfo">>,age = 10},
iProcessData:queryinfo(Info,[]).

Build

$ rebar3 compile

release

$ ./rebar3 as dubboerl release -n dubboerl