Skip to content

Commit f74c8c2

Browse files
committed
iluwatar#143 Added second message channel.
1 parent b99d2b7 commit f74c8c2

File tree

1 file changed

+5
-3
lines changed
  • message-channel/src/main/java/com/iluwatar/message/channel

1 file changed

+5
-3
lines changed

message-channel/src/main/java/com/iluwatar/message/channel/App.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@
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
*/
2930
public 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
});

0 commit comments

Comments
 (0)