... | ... | @@ -144,7 +144,8 @@ The subscriber app connects to the publisher app which triggers the sending of t |
|
|
The subscriber app is killed with CTL-C but the publisher app is still running so that you have to kill it also with CTL-C.
|
|
|
|
|
|
Now relaunch the subscriber app without relaunching the publisher app. The publisher is started in background and the messages are sent from the publisher to the requester.
|
|
|
If you kill the subscriber app with CTL-C then the publisher is also killed. That is because the publisher app is linked to its starter.
|
|
|
If you kill the subscriber app with CTL-C then the publisher is also killed. That is because the publisher app is linked to its starter. You can also properly stop the subscriber app. To do it type 'S' en upper case in the console and press enter. In that case the subscriber app is stopping the publisher app which terminates properly.
|
|
|
|
|
|
|
|
|
Code is available:
|
|
|
* [Publisher java](https://code.ill.fr/cameo/cameo/-/blob/master/examples/java/src/fr/ill/ics/cameo/examples/PublisherApp.java)
|
... | ... | |