Guest User

Untitled

a guest
Apr 24th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.52 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xmlns:int="http://www.springframework.org/schema/integration"
  5. xmlns:int-file="http://www.springframework.org/schema/integration/file"
  6. xmlns:int-jdbc="http://www.springframework.org/schema/integration/jdbc"
  7. xmlns:beans="http://www.springframework.org/schema/beans"
  8. xsi:schemaLocation="http://www.springframework.org/schema/beans
  9. http://www.springframework.org/schema/beans/spring-beans.xsd
  10. http://www.springframework.org/schema/integration
  11. http://www.springframework.org/schema/integration/spring-integration.xsd
  12. http://www.springframework.org/schema/integration/file
  13. http://www.springframework.org/schema/integration/file/spring-integration-file.xsd
  14. http://www.springframework.org/schema/integration/jdbc
  15. http://www.springframework.org/schema/integration/jdbc/spring-integration-jdbc.xsd
  16. http://www.springframework.org/schema/beans
  17. http://www.springframework.org/schema/beans/spring-beans.xsd">
  18.  
  19. <!-- input-files-from-folder -->
  20. <int-file:inbound-channel-adapter id="outcomeIn"
  21. directory="file:/in-outcome">
  22. <int:poller id="poller" fixed-delay="2500" />
  23. </int-file:inbound-channel-adapter>
  24.  
  25. <int:transformer input-channel="outcomeIn" output-channel="outcomesChannel" method="transform">
  26. <beans:bean class="transformers.outcomeTransf" />
  27. </int:transformer>
  28.  
  29. <!-- save source to db! -->
  30.  
  31. <int:splitter input-channel="outcomesChannel" output-channel="singleoutcomeChannel" method="splitMessage">
  32. <beans:bean class="splitters.outcomeSplit" />
  33. </int:splitter>
  34.  
  35. <int:transformer input-channel="singleoutcomeChannel" output-channel="jdbcChannel" method="transform">
  36. <beans:bean class="transformers.SingleoutcomeToMap" />
  37. </int:transformer>
  38.  
  39. <int-jdbc:stored-proc-outbound-channel-adapter
  40. data-source="dataSource" channel="jdbcChannel" stored-procedure-name="insert_outcome"
  41. ignore-column-meta-data="true">
  42.  
  43. <int-jdbc:sql-parameter-definitions ... />
  44.  
  45. <int-jdbc:parameter ... />
  46.  
  47. </int-jdbc:stored-proc-outbound-channel-adapter>
  48.  
  49. <bean id="dataSource" class="org.apache.commons.dbcp2.BasicDataSource" destroy-method="close" >
  50. <property name="driverClassName" value="org.postgresql.Driver"/>
  51. <property ... />
  52. </bean>
  53.  
  54. </beans>
Add Comment
Please, Sign In to add comment