jnan77 / jsonrpc4j

Automatically exported from code.google.com/p/jsonrpc4j
0 stars 0 forks source link

jsonrpc4j does not appear to support Batch mode as specified in JSON-RPC 2.0 specification #39

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It does not appear that jsonrpc4j supports the Batch mode called for in the 
JSON-RPC 2.0 specification (http://www.jsonrpc.org/specification#batch):

"To send several Request objects at the same time, the Client MAY send an Array 
filled with Request objects.

The Server should respond with an Array containing the corresponding Response 
objects, after all of the batch Request objects have been processed. A Response 
object SHOULD exist for each Request object, except that there SHOULD NOT be 
any Response objects for notifications. The Server MAY process a batch rpc call 
as a set of concurrent tasks, processing them in any order and with any width 
of parallelism.

The Response objects being returned from a batch call MAY be returned in any 
order within the Array. The Client SHOULD match contexts between the set of 
Request objects and the resulting set of Response objects based on the id 
member within each Object.

If the batch rpc call itself fails to be recognized as an valid JSON or as an 
Array with at least one value, the response from the Server MUST be a single 
Response object. If there are no Response objects contained within the Response 
array as it is to be sent to the client, the server MUST NOT return an empty 
Array and should return nothing at all."

Original issue reported on code.google.com by brett.wo...@gmail.com on 26 Sep 2012 at 12:55

GoogleCodeExporter commented 8 years ago
This bug is invalid and should be closed, the error in handling was related to 
Issue#38.

Original comment by brett.wo...@gmail.com on 26 Sep 2012 at 5:00

GoogleCodeExporter commented 8 years ago
Thanks, closing.

Original comment by brian.di...@gmail.com on 3 Oct 2012 at 11:22