Java Code Examples for org.apache.camel.Exchange#setOut()
The following examples show how to use
org.apache.camel.Exchange#setOut() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: InputGenerator.java From java-course-ee with MIT License | 3 votes |
@Override public void process(Exchange exchange) throws Exception { DefaultMessage message = new DefaultMessage(); message.setBody("current time: " + new Date()); exchange.setOut(message); }
Example 2
Source File: InputGenerator.java From java-course-ee with MIT License | 3 votes |
@Override public void process(Exchange exchange) throws Exception { DefaultMessage message = new DefaultMessage(); message.setBody("current time: " + new Date()); exchange.setOut(message); }