mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-17 18:59:15 +00:00
Wire Tap EIP implementation and tests
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
package com.iluwatar.eip.wiretap;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
/**
|
||||
* In most integration cases there is a need to monitor the messages flowing through the system. It is usually achieved
|
||||
* by intercepting the message and redirecting it to a different location like console, filesystem or the database.
|
||||
* It is important that such functionality should not modify the original message and influence the processing path.
|
||||
*
|
||||
* <p>
|
||||
* Wire Tap allows you to route messages to a separate location while they are being forwarded to the ultimate
|
||||
* destination. It basically consumes messages of the input channel and publishes the unmodified message to both
|
||||
* output channels.
|
||||
* </p>
|
||||
*/
|
||||
@SpringBootApplication
|
||||
public class App {
|
||||
|
||||
/**
|
||||
* Program entry point. It starts Spring Boot application and using Apache Camel it auto-configures routes.
|
||||
*
|
||||
* @param args command line args
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(App.class, args);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user