Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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:int="http://www.springframework.org/schema/integration"
- xmlns:int-file="http://www.springframework.org/schema/integration/file"
- xmlns:int-jdbc="http://www.springframework.org/schema/integration/jdbc"
- xmlns:beans="http://www.springframework.org/schema/beans"
- xsi:schemaLocation="http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans.xsd
- http://www.springframework.org/schema/integration
- http://www.springframework.org/schema/integration/spring-integration.xsd
- http://www.springframework.org/schema/integration/file
- http://www.springframework.org/schema/integration/file/spring-integration-file.xsd
- http://www.springframework.org/schema/integration/jdbc
- http://www.springframework.org/schema/integration/jdbc/spring-integration-jdbc.xsd
- http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans.xsd">
- <!-- input-files-from-folder -->
- <int-file:inbound-channel-adapter id="outcomeIn"
- directory="file:/in-outcome">
- <int:poller id="poller" fixed-delay="2500" />
- </int-file:inbound-channel-adapter>
- <int:transformer input-channel="outcomeIn" output-channel="outcomesChannel" method="transform">
- <beans:bean class="transformers.outcomeTransf" />
- </int:transformer>
- <!-- save source to db! -->
- <int:splitter input-channel="outcomesChannel" output-channel="singleoutcomeChannel" method="splitMessage">
- <beans:bean class="splitters.outcomeSplit" />
- </int:splitter>
- <int:transformer input-channel="singleoutcomeChannel" output-channel="jdbcChannel" method="transform">
- <beans:bean class="transformers.SingleoutcomeToMap" />
- </int:transformer>
- <int-jdbc:stored-proc-outbound-channel-adapter
- data-source="dataSource" channel="jdbcChannel" stored-procedure-name="insert_outcome"
- ignore-column-meta-data="true">
- <int-jdbc:sql-parameter-definitions ... />
- <int-jdbc:parameter ... />
- </int-jdbc:stored-proc-outbound-channel-adapter>
- <bean id="dataSource" class="org.apache.commons.dbcp2.BasicDataSource" destroy-method="close" >
- <property name="driverClassName" value="org.postgresql.Driver"/>
- <property ... />
- </bean>
- </beans>
Add Comment
Please, Sign In to add comment