mirror of
https://github.com/corda/corda.git
synced 2025-02-05 10:39:13 +00:00
c23167f08e
Set the "h2.allowedClasses" system property, require database password when exposing H2 server on non-localhost address, samples start H2 server by default (reintroduces the behaviour before h2Settings.address configuration option was added)
Cordapp Configuration Sample
This sample shows a simple example of how to use per-cordapp configuration. It includes;
- A configuration file
- Gradle build file to show how to install your Cordapp configuration
- A flow that consumes the Cordapp configuration
To run from the command line in Unix:
- Run
./gradlew samples:cordapp-configuration:deployNodes
to create a set of configs and installs undersamples/cordapp-configuration/build/nodes
- Run
./samples/cordapp-configuration/build/nodes/runnodes
to open up three new terminals with the three nodes - At the shell prompt for Bank A or Bank B run
start net.corda.configsample.GetStringConfigFlow configKey: someStringValue
. This will start the flow and read thesomeStringValue
CorDapp config.
To run from the command line in Windows:
- Run
gradlew samples:cordapp-configuration:deployNodes
to create a set of configs and installs undersamples\cordapp-configuration\build\nodes
- Run
samples\cordapp-configuration\build\nodes\runnodes
to open up three new terminals with the three nodes - At the shell prompt for Bank A or Bank B run
start net.corda.configsample.GetStringConfigFlow configKey: someStringValue
. This will start the flow and read thesomeStringValue
CorDapp config.