INT-1380 added file sample

This commit is contained in:
Oleg Zhurakousky
2010-09-16 15:33:57 -04:00
parent 78c1209332
commit 65ea2289bf
341 changed files with 9286 additions and 1 deletions

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<!-- Appenders -->
<appender name="console" class="org.apache.log4j.ConsoleAppender">
<param name="Target" value="System.out" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%-5p: %c - %m%n" />
</layout>
</appender>
<!-- Loggers -->
<logger name="org.springframework">
<level value="warn" />
</logger>
<logger name="org.springframework.integration">
<level value="warn" />
</logger>
<!-- Root Logger -->
<root>
<priority value="warn" />
<appender-ref ref="console" />
</root>
</log4j:configuration>

View File

@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:si="http://www.springframework.org/schema/integration"
xmlns:jmx="http://www.springframework.org/schema/integration/jmx"
xmlns:stream="http://www.springframework.org/schema/integration/stream"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd
http://www.springframework.org/schema/integration/jmx http://www.springframework.org/schema/integration/jmx/spring-integration-jmx-2.0.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/integration/stream http://www.springframework.org/schema/integration/stream/spring-integration-stream.xsd">
<context:mbean-export/>
<context:mbean-server/>
<context:component-scan base-package="org.springframework.integration.samples.jmx"/>
<jmx:attribute-polling-channel-adapter channel="seconds"
object-name="org.springframework.integration.samples.jmx:type=StopWatch,name=stopWatch"
attribute-name="Seconds">
<si:poller max-messages-per-poll="1" fixed-delay="1000"/>
</jmx:attribute-polling-channel-adapter>
<si:publish-subscribe-channel id="seconds"/>
<stream:stdout-channel-adapter channel="seconds" append-newline="true"/>
<si:filter input-channel="seconds" expression="payload >= 10" output-channel="reset"/>
<jmx:operation-invoking-channel-adapter id="reset"
object-name="org.springframework.integration.samples.jmx:type=StopWatch,name=stopWatch"
operation-name="reset"/>
</beans>