apache / dubbo-rpc-jsonrpc Goto Github PK
View Code? Open in Web Editor NEWThe Json rpc module of Apache Dubbo project
Home Page: https://dubbo.apache.org
License: Apache License 2.0
The Json rpc module of Apache Dubbo project
Home Page: https://dubbo.apache.org
License: Apache License 2.0
RT.
hello, guys, this project for a rpc component with jsonrpc, and then we can create more component in this way, such as xmlrpc, pb, grpc, turbo,hprose etc, then we need create many root projects in apache org.
So, I think we need think about moving this project in two ways:
How about this idea, guys?
Maybe http headers is a well enough way.
Support it?
current version of dubbo-rpc-jsonrpc is write for com.alibaba.dubbo version 2.4.x - 2.6.x
could someone rewrite the code for support org.apache.dubbo 2.7.x
change
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dubbo</artifactId>
<version>${dubbo_version}</version>
<optional>true</optional>
</dependency>
into
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo</artifactId>
<version>${dubbo_version}</version>
<optional>true</optional>
</dependency>
and rewrite the JsonRpcProtocol class there is no more com.alibaba.dubbo.rpc.protocol.AbstractProxyProtocol
请问如何配置以tomcat作为容器的 dubbo rpc jsonrpc
作者你好,感谢你回复。
配置感觉我有一步骤不对,
文中说到的:“
注意,如果使用servlet派发请求:
协议的端口必须与servlet容器的端口相同, 协议的上下文路径必须与servlet应用的上下文路径相同。“
这句话怎么理解 以及配置呢,感谢回复谢谢
Should remove author and change package name.
dubbo-client-py and dubbo nodejs repository has been moved in dubbo organization.
其他没有问题,只有最后一步在web.xml上配转发器的那个不知道怎么配了,spring boot没有web.xml,普通的dubbo协议是通的
想直接将服务抛给 浏览器 里的 JS,需要跨域支持,我试着这么做了
if (request.getMethod().equalsIgnoreCase("OPTIONS")) {
response.setHeader(CrossOriginFilter.ACCESS_CONTROL_ALLOW_ORIGIN_HEADER, "*");
response.setHeader(CrossOriginFilter.ACCESS_CONTROL_ALLOW_METHODS_HEADER, "POST");
response.setHeader(CrossOriginFilter.ACCESS_CONTROL_ALLOW_HEADERS_HEADER, "Content-Type");
response.setStatus(200);
} else if (request.getMethod().equalsIgnoreCase("POST")) {
response.setHeader(CrossOriginFilter.ACCESS_CONTROL_ALLOW_ORIGIN_HEADER, "*");
RpcContext.getContext().setRemoteAddress(request.getRemoteAddr(), request.getRemotePort());
try {
skeleton.handle(request.getInputStream(), response.getOutputStream());
} catch (Throwable e) {
throw new ServletException(e);
}
} else {
response.setStatus(500);
}
是可以的,但是我需要一个开关,可以放到protocol配置里么?像下面(我是用js做ioc启动的)
protocol : {
type : 'com.alibaba.dubbo.config.ProtocolConfig',
fields : {
name : 'jsonrpc',
port : 9090,
server : 'jetty',
cors: true
}
}
ERROR RegistryDirectory:372 - Unsupported protocol jsonrpc in notified url: jsonrpc://***, supported protocol: [dubbo, http, injvm, mock, redis, registry, rmi, thrift]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.