Spring框架3中的JSON-RPC [英] JSON-RPC in Spring framework 3
问题描述
在我的Spring 3 Web应用程序中实现JSON-RPC时,我需要一些推荐,最佳实践/库。
I need some recomendations, best practice/libs, when implementing JSON-RPC in my Spring 3 web application.
我发现这个 http://code.google.com/p/jsonrpc4j/ 但它似乎没有任何可用的相关内容。
I found this http://code.google.com/p/jsonrpc4j/ but it didn't seem to be any relases available.
编辑:
为了澄清,我想提供一个JSON-RPC服务
For clarification, I want to provide a JSON-RPC service
推荐答案
杰克逊的htmlrel =nofollow> Spring MVC 可以通过 REST 调用提供 json 响应。这很简单。但我不认为本地 Spring 中有任何设施可以接受 JSON-RPC 请求,包括方法名称并返回包含 JSON-RPC 错误代码的响应。
Spring MVC with Jackson can provide a json response with a REST call. This is easy. But I don't think there is any facility in native Spring to accept a JSON-RPC request including a method name and return a response including the JSON-RPC error codes.
您最好的选择是查看像 jsonrpc4j这样的图书馆。
Your best bet may be to look at a library like jsonrpc4j.
这篇关于Spring框架3中的JSON-RPC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!