File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
message-channel/src/main/java/com/iluwatar/message/channel Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 2121 * doesn't pull info off some random channel; it selects what channel to get information
2222 * from based on what type of information it wants.
2323 * <p>
24- * In this example we use Apache Camel to establish a direct synchronous Message Channel
25- * that delivers messages to console output. No actual messages are sent, only the established
26- * routes are printed to standard output.
24+ * In this example we use Apache Camel to establish two different Message Channels. The first
25+ * one reads from standard input and delivers messages to Direct endpoint. The second Message
26+ * Channel is established from the Direct component to console output. No actual messages are sent,
27+ * only the established routes are printed to standard output.
2728 *
2829 */
2930public class App {
@@ -40,6 +41,7 @@ public static void main(String[] args) throws Exception {
4041
4142 @ Override
4243 public void configure () throws Exception {
44+ from ("stream:in" ).to ("direct:greetings" );
4345 from ("direct:greetings" ).to ("stream:out" );
4446 }
4547 });
You can’t perform that action at this time.
0 commit comments