INTSAMPLES-54 - Update README.md
* Update README.md to reflect correct classes * Add documentation for Delayer application * Add JavaDoc for delayer application * Delete redundant *src/main/resources/log4j.properties* * Add logger name to *Logging Channel Adapter* configuration * Add Maven Exec Maven Plugin for easy execution from the command line
This commit is contained in:
@@ -1,8 +1,37 @@
|
||||
Hello World Sample
|
||||
==================
|
||||
|
||||
This is an obvious place to get started. It demonstrates a simple message flow represented by the diagram below:
|
||||
This is an obvious place to get started. This sample project contains 2 basic sample applications:
|
||||
|
||||
Message -> Channel -> ServiceActivator -> QueueChannel
|
||||
* Hello World
|
||||
* Delayer Application
|
||||
|
||||
## Hello World
|
||||
|
||||
The Hello World application demonstrates a simple message flow represented by the diagram below:
|
||||
|
||||
Message -> Channel -> ServiceActivator -> QueueChannel
|
||||
|
||||
To run the sample simply execute **HelloWorldApp** in package **org.springframework.integration.samples.helloworld**. You can also execute that class using the [Exec Maven Plugin](http://mojo.codehaus.org/exec-maven-plugin/):
|
||||
|
||||
$ mvn clean package exec:java -P hello
|
||||
|
||||
You should see the following output:
|
||||
|
||||
INFO : org.springframework.integration.samples.helloworld.HelloWorldApp - ==> HelloWorldDemo: Hello World
|
||||
|
||||
## Delayer Application
|
||||
|
||||
This simple application will print out the current system time twice every 20 seconds.
|
||||
|
||||
More specifically, an **Inbound Channel Adapter** polls for the current system time 2 times every 20 seconds (20000 milliseconds). The resulting message contains as payload the time in milliseconds and the message is sent to a **Logging Channel Adapter**, which will print the time to the command prompt.
|
||||
|
||||
To run the sample simply execute **DelayerApp** in package **org.springframework.integration.samples.helloworld**. You can also execute that class using the [Exec Maven Plugin](http://mojo.codehaus.org/exec-maven-plugin/):
|
||||
|
||||
$ mvn clean package exec:java -P delayer
|
||||
|
||||
You should see output like the following:
|
||||
|
||||
INFO : org.springframework.integration.samples.helloworld - 1328892135471
|
||||
INFO : org.springframework.integration.samples.helloworld - 1328892135524
|
||||
|
||||
To run sample simply execute a test case in the **org.springframework.integration.samples.helloworld** package.
|
||||
Reference in New Issue
Block a user