Keep the order of buffered messages in Camel producer, see #3477
* fix bug in java sample * doc corrections
This commit is contained in:
parent
1cca2b85e3
commit
a481272b67
15 changed files with 101 additions and 99 deletions
|
|
@ -19,8 +19,9 @@ public class Consumer3 extends UntypedConsumerActor{
|
|||
public void onReceive(Object message) {
|
||||
if (message instanceof CamelMessage) {
|
||||
CamelMessage camelMessage = (CamelMessage) message;
|
||||
transformer.forward(camelMessage.getBodyAs(String.class, getCamelContext()),
|
||||
getContext());
|
||||
// Forward a string representation of the message body to transformer
|
||||
String body = camelMessage.getBodyAs(String.class, getCamelContext());
|
||||
transformer.forward(camelMessage.withBody(body), getContext());
|
||||
} else
|
||||
unhandled(message);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue