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:
Gunnar Hillert
2012-02-10 12:02:55 -05:00
parent 4dc47bf2f7
commit 43b85119c8
6 changed files with 69 additions and 18 deletions

View File

@@ -5,11 +5,17 @@ import org.springframework.context.support.ClassPathXmlApplicationContext;
public class DelayerApp {
/**
* @param args
* Simple application that polls the current system time 2 times every
* 20 seconds (20000 milliseconds).
*
* The resulting message contains the time in milliseconds and the message
* is routed to a Logging Channel Adapter which will print the time to the
* command prompt.
*
* @param args Not used.
*/
public static void main(String[] args) throws Exception{
new ClassPathXmlApplicationContext("META-INF/spring/integration/delay.xml");
System.in.read();
}
}

View File

@@ -11,8 +11,8 @@
<int:inbound-channel-adapter expression="T(java.lang.System).currentTimeMillis()" channel="logger">
<int:poller fixed-delay="20000" max-messages-per-poll="2" />
</int:inbound-channel-adapter>
<int:logging-channel-adapter id="logger"/>
<int:logging-channel-adapter id="logger" logger-name="org.springframework.integration.samples.helloworld"/>
<task:executor id="executor" queue-capacity="20" pool-size="5-20"/>
</beans>

View File

@@ -1,9 +0,0 @@
log4j.rootCategory=WARN, stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %t %c{2}:%L - %m%n
#log4j.category.org.springframework=WARN
#log4j.category.org.springframework.integration.sftp=TRACE
log4j.category.org.springframework=TRACE

View File

@@ -24,5 +24,5 @@
<priority value="warn" />
<appender-ref ref="console" />
</root>
</log4j:configuration>