Closed dl-ota closed 3 years ago
The connection is now established once. Related commit: https://github.com/dl-ota/Nutrisafe-REST-API/commit/fd9ca6235f314c17db44cba2274b943553b3eb24
This is done by testing if the network is null. The Classes Network and Gateway offer no fitting method to for this purpose:
https://hyperledger.github.io/fabric-gateway-java/master/org/hyperledger/fabric/gateway/Network.html
https://hyperledger.github.io/fabric-gateway-java/master/org/hyperledger/fabric/gateway/Gateway.html
Since we want to be able to receive notifications by the block chain, we need to hold a session. All required functions should be inside our Utils class.