Created
January 30, 2016 01:20
-
-
Save rterp/489f4c9bd54bf53c4263 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 buildConsumerRoute(CamelContext context) throws Exception { | |
context.addRoutes(new RouteBuilder() { | |
@Override | |
public void configure() throws Exception { | |
Processor processor = (Exchange exchange) -> { | |
System.out.println("CONSUMER received message: " + exchange.getIn().getBody(String.class)); | |
exchange.getIn().setBody("I Saw it!!! It contained: " + exchange.getIn().getBody(String.class)); | |
}; | |
from("jms-broker:queue:robt.test.queue") | |
.to("file:///Users/RobTerpilowski/tmp/out") | |
.process(processor); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment