Created
January 30, 2016 01:19
-
-
Save rterp/837b9bd5aad7b2b6b2c2 to your computer and use it in GitHub Desktop.
This file contains 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
public void buildProducerRoute(CamelContext context) throws Exception { | |
context.addRoutes(new RouteBuilder() { | |
@Override | |
public void configure() throws Exception { | |
Processor processor = (Exchange exchange) -> { | |
System.out.println("PRODUCER Received response: " + exchange.getIn().getBody(String.class)); | |
}; | |
from("file:///Users/RobTerpilowski/tmp/in") | |
.to("jms-broker:queue:robt.test.queue?exchangePattern=InOut") | |
.process(processor); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment