2017-10-25 08:29:32 +00:00
|
|
|
# Attachment Demo
|
2016-11-17 11:03:40 +00:00
|
|
|
|
2017-10-25 08:29:32 +00:00
|
|
|
This demo brings up three nodes, and sends a transaction containing an attachment from one to the other.
|
2016-11-17 11:03:40 +00:00
|
|
|
|
2017-10-25 08:29:32 +00:00
|
|
|
To run from the command line in Unix:
|
2016-11-29 14:43:22 +00:00
|
|
|
|
2017-10-25 08:29:32 +00:00
|
|
|
1. Run ``./gradlew samples:attachment-demo:deployNodes`` to create a set of configs and installs under
|
|
|
|
``samples/attachment-demo/build/nodes``
|
|
|
|
2. Run ``./samples/attachment-demo/build/nodes/runnodes`` to open up three new terminal tabs/windows with the three
|
|
|
|
nodes and webserver for BankB
|
|
|
|
3. Run ``./gradlew samples:attachment-demo:runRecipient``, which will block waiting for a trade to start
|
|
|
|
4. Run ``./gradlew samples:attachment-demo:runSender`` in another terminal window to send the attachment. Now look at
|
|
|
|
the other windows to see the output of the demo
|
2016-11-29 14:43:22 +00:00
|
|
|
|
2017-10-25 08:29:32 +00:00
|
|
|
To run from the command line in Windows:
|
2016-11-29 14:43:22 +00:00
|
|
|
|
2017-10-25 08:29:32 +00:00
|
|
|
1. Run ``gradlew samples:attachment-demo:deployNodes`` to create a set of configs and installs under
|
|
|
|
``samples\attachment-demo\build\nodes``
|
|
|
|
2. Run ``samples\attachment-demo\build\nodes\runnodes`` to open up three new terminal tabs/windows with the three nodes
|
|
|
|
and webserver for BankB
|
|
|
|
3. Run ``gradlew samples:attachment-demo:runRecipient``, which will block waiting for a trade to start
|
|
|
|
4. Run ``gradlew samples:attachment-demo:runSender`` in another terminal window to send the attachment. Now look at the
|
|
|
|
other windows to see the output of the demo
|