Examples
Requester/Responder
The requester/responder in Java can be tested. First start the Cameo server with jzmq:
$ java -classpath cameo-tests-jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.server.Server src/main/java/fr/ill/ics/cameo/examples/jzmq-config.xml
Then start the responder in a new shell:
$ cmo -p 10000 exec responder
Execute a requester in a new shell:
$ cmo -p 10000 exec requester my-request 10
The requester/responder in C++ can be tested. First start the Cameo server with jzmq:
$ java -classpath cameo-tests-jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.server.Server src/examples/config.xml
Then start the responder in a new shell:
$ cmo -p 11000 exec responder
Execute a requester in a new shell:
$ cmo -p 11000 exec requester my-request 10
Execute the requester with the Java responder:
$ cmo -p 11000 exec requester my-request 10 tcp://localhost:10000
Publisher/Subscriber
The publisher/subscriber in Java can be tested. First start the Cameo server with jzmq:
$ java -classpath cameo-tests-jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.server.Server src/main/java/fr/ill/ics/cameo/examples/jzmq-config.xml
Then start the publisher in a new shell:
$ cmo -p 10000 exec publisher
Execute a subscriber in a new shell:
$ cmo -p 10000 exec subscriber
The publisher/subscriber in C++ can be tested. First start the Cameo server with jzmq:
$ java -classpath cameo-tests-jzmq/target/cameo-tests-jzmq-full.jar fr.ill.ics.cameo.server.Server src/examples/config.xml
Then start the publisher in a new shell:
$ cmo -p 11000 exec publisher
Execute a subscriber in a new shell:
$ cmo -p 11000 exec subscriber
Execute the requester with the Java publisher:
$ cmo -p 11000 exec subscriber tcp://localhost:10000