INTSAMPLES-15 added FTP sample
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
|
||||
http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration-2.0.xsd
|
||||
http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.0.xsd"
|
||||
xmlns:int="http://www.springframework.org/schema/integration"
|
||||
xmlns:task="http://www.springframework.org/schema/task">
|
||||
|
||||
|
||||
<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"/>
|
||||
|
||||
<task:executor id="executor" queue-capacity="20" pool-size="5-20"/>
|
||||
</beans>
|
||||
@@ -0,0 +1,15 @@
|
||||
package org.springframework.integration.samples.helloworld;
|
||||
|
||||
import org.springframework.context.support.ClassPathXmlApplicationContext;
|
||||
|
||||
public class DelayerTest {
|
||||
|
||||
/**
|
||||
* @param args
|
||||
*/
|
||||
public static void main(String[] args) throws Exception{
|
||||
new ClassPathXmlApplicationContext("META-INF/spring/integration/delay.xml");
|
||||
System.in.read();
|
||||
}
|
||||
|
||||
}
|
||||
9
basic/helloworld/src/test/resources/log4j.properties
Normal file
9
basic/helloworld/src/test/resources/log4j.properties
Normal file
@@ -0,0 +1,9 @@
|
||||
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
|
||||
Reference in New Issue
Block a user