No, Jersey cannot be configured to support JSON-RPC, but Jersey can be used to implement JSON-RPC. JSON-RPC defines a protocol with requests and responses and can be implemented via HTTP. Jersey (and all JAX-RPC implementations) can be used to implement any HTTP protocol.
However, since the latest JSON-RPC specification (2.0 - http://www.jsonrpc.org/specification ) does not indicate how the request and responses are mapped to HTTP verbs (POST, GET, etc.) and status codes, they can There are some incompatibilities between JSON-RPC implementations.
Instead of using Jersey to implement JSON-RPC, you might be better off using an existing JSON-RPC implementation, see also http://en.wikipedia.org/wiki/JSON-RPC#Implementations
source share