feat: Add Java chaincode development mode support
This PR adds support for running Java chaincode in development mode #360
@dzikowski @umegbewe If everything looks good , I’ll proceed with writing the documentation for it.
We actually have a sample Java chaincode, but it's OK to have two - just please put it in the same directory: samples/chaincodes
Also please document it in this PR in README. We have a section Running chaincodes in dev mode. It would explain me how to run locally while doing a review.
Finally, please add also a relevant entry to the CHANGELOg file
I replaced the simpleasset chaincode with PokeballContract.java. The chaincode builds and starts fine in dev mode, but it still fails with the following error:
UNIMPLEMENTED: unknown service protos.ChaincodeSupport
From the peer container logs, it looks like dev mode is enabled correctly, so the issue seems to be with the gRPC connection between the chaincode and the peer.
Still investigating this any suggestions are welcome.