Keep the order of buffered messages in Camel producer, see #3477

* fix bug in java sample
* doc corrections
This commit is contained in:
Patrik Nordwall 2013-06-27 16:45:47 +02:00
parent 1cca2b85e3
commit a481272b67
15 changed files with 101 additions and 99 deletions

View file

@ -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);
}