Processed review wip-camel pull request 344
This commit is contained in:
parent
4d6511c5c6
commit
f74616f828
56 changed files with 544 additions and 1992 deletions
|
|
@ -34,8 +34,8 @@ public class SampleErrorHandlingConsumer extends UntypedConsumerActor {
|
|||
|
||||
|
||||
public void onReceive(Object message) throws Exception {
|
||||
Message msg = (Message) message;
|
||||
String body = rich(msg).getBodyAs(String.class);
|
||||
CamelMessage msg = (CamelMessage) message;
|
||||
String body = msg.getBodyAs(String.class,this.getCamelContext());
|
||||
throw new Exception(String.format("error: %s", body));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue