File tree Expand file tree Collapse file tree 1 file changed +28
-1
lines changed
message-channel/src/main/java/com/iluwatar/message/channel Expand file tree Collapse file tree 1 file changed +28
-1
lines changed Original file line number Diff line number Diff line change 44import org .apache .camel .builder .RouteBuilder ;
55import org .apache .camel .impl .DefaultCamelContext ;
66
7+ /**
8+ *
9+ * When two applications communicate with each other using a messaging system
10+ * they first need to establish a communication channel that will carry the
11+ * data. Message Channels are logical addresses in the messaging system.
12+ * <p>
13+ * The sending application doesn't necessarily know what particular application
14+ * will end up retrieving it, but it can be assured that the application that
15+ * retrieves the information is interested in that information. This is because
16+ * the messaging system has different Message Channels for different types of
17+ * information the applications want to communicate. When an application sends
18+ * information, it doesn't randomly add the information to any channel available;
19+ * it adds it to a channel whose specific purpose is to communicate that sort of
20+ * information. Likewise, an application that wants to receive particular information
21+ * doesn't pull info off some random channel; it selects what channel to get information
22+ * from based on what type of information it wants.
23+ * <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.
27+ *
28+ */
729public class App {
8-
30+
31+ /**
32+ * Program entry point
33+ * @param args command line args
34+ * @throws Exception
35+ */
936 public static void main (String [] args ) throws Exception {
1037 CamelContext context = new DefaultCamelContext ();
1138
You can’t perform that action at this time.
0 commit comments