Skip to content
Permalink
Browse files
Merge pull request #2 from dubboerl/0.3.0
0.3.0
  • Loading branch information
Dlive committed Apr 22, 2019
2 parents 50126a2 + 67f12f3 commit b05a77652b70a958d5a83c6e7d4581d131ccfb26
Showing 5 changed files with 11 additions and 4 deletions.
@@ -9,7 +9,10 @@ Feature list
The following features are supported.

* Zookeeper registry center (√)
* Tcp Transport and Hession serialize (√)
* Tcp Transport
* Serialize
* Hession serialize (√)
* Json serialize (√)
* Erlang project as a consumer (√)
* Erlang project as a provider (√)
* Sync invoker (√)
@@ -15,6 +15,8 @@
-define(DUBBO_MEGIC_HIGH, 16#da). %% new version 16#da
-define(DUBBO_MEGIC_LOW, 16#bb). %% new version 16#bb

-define(DUBBO_DEFAULT_PORT,20880).

%% 序列化类型
-define(SERIALIZATION_HESSIAN,2).
-define(SERIALIZATION_FASTJSON,6).
@@ -12,5 +12,5 @@

{maintainers, []},
{licenses, []},
{links, []}
{links, [{"Github", "https://github.com/dubboerl/dubboerl"}]}
]}.
@@ -10,6 +10,8 @@
-author("dlive").

-include("dubboerl.hrl").
-include("dubbo.hrl").

%% API
-export([init/0,start_consumer/0,start_provider/0]).

@@ -32,7 +34,7 @@ start_consumer()->
start_provider()->
ProviderList = application:get_env(dubboerl,provider,[]),
ApplicationName = application:get_env(dubboerl,application,<<"defaultApplication">>),
DubboServerPort = application:get_env(dubboerl,port,20881),
DubboServerPort = application:get_env(dubboerl,port,?DUBBO_DEFAULT_PORT),
start_provider_listen(DubboServerPort),
lists:map(fun({ImplModuleName,BehaviourModuleName,Interface,Option})->
ok = dubbo_provider_protocol:register_impl_provider(Interface,ImplModuleName,BehaviourModuleName),
@@ -15,7 +15,7 @@
%%====================================================================

start(_StartType, _StartArgs) ->
io:format("[START] server start~n"),
io:format("[START] dubbo framework server start~n"),
env_init(),
dubboerl_sup:start_link().

0 comments on commit b05a776

Please sign in to comment.