JSON-RPC in Spring framework 3 [closed]
-
12-06-2021 - |
Domanda
I need some recomendations, best practice/libs, when implementing JSON-RPC in my Spring 3 web application.
I found this http://code.google.com/p/jsonrpc4j/ but it didn't seem to be any relases available.
Edit:
For clarification, I want to provide a JSON-RPC service
Soluzione
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.
Your best bet may be to look at a library like jsonrpc4j.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow