There is project on spring-boot and need to implement json-rpc intregration Choosen jsonrpc4j lib for implementation and user instruction from here
But when try to send message from postman, there is nothing in logs and nothig reactions from application.
There are interface and implementation of rpc:
@JsonRpcService("/jsonrpc")
public interface MessageRpcService {
@JsonRpcMethod(value = "sendMessage")
ParserMessage sendMessage(@JsonRpcParam(value = "message") String message);
}
@Slf4j
@Service
@AutoJsonRpcServiceImpl
public class MessageRpcServiceImpl implements MessageRpcService {
@Override
@JsonRpcMethod(value = "sendMessage")
public ParserMessage sendMessage(@JsonRpcParam(value = "message") String message) {
log.info("hello from rpc");
return new ParserMessage();
}
}
and try to send this message
{ "jsonrpc": "2.0", "method": "sendMessage", "params": { "message": "message" }, "id": 1 }