Created
March 24, 2017 19:04
-
-
Save dannylamb/a4e47d580eb993a4130023c55a3a94da to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from("timer:foo?period=5000") | |
.setHeader("IslandoraExchangePattern", constant("InOut")) | |
.setHeader("IslandoraBroadcastRecipients", constant("activemq:queue:testA,activemq:queue:testB")) | |
.to("{{input.stream}}") | |
.log(INFO, LOGGER, "RECEIVED FROM B: ${body}"); | |
from("activemq:queue:testA") | |
.log(INFO, LOGGER, "Waiting 2 seconds in A") | |
.process((exchange -> Thread.sleep(2000))) | |
.log(INFO, LOGGER, "Finished waiting in A") | |
.transform(constant("AAAAAAAA")); | |
from("activemq:queue:testB") | |
.log(INFO, LOGGER, "RECEIVED FROM A: ${body}") | |
.log(INFO, LOGGER, "Waiting 2 seconds in B") | |
.process((exchange -> Thread.sleep(2000))) | |
.log(INFO, LOGGER, "Finished waiting in B") | |
.transform(constant("BBBBBBBB")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment