spring-integration

spring-integration parallel split-route-aggregate flow fails due to one-way MessageHandler

谁都会走 提交于 2021-02-08 06:14:29
问题 I want to process a list of items in parallel by splitting them, routing each item to their appropriate gateway and aggregating the results. However, my application does not start, I get the following error: BeanCreationException: The 'currentComponent' ... is a one-way 'MessageHandler' and it isn't appropriate to configure 'outputChannel'. This is the end of the integration flow. This is a sample flow definition which illustrates the behaviour: @Bean public IntegrationFlow

Spring Batch Integration Start/Stop File Adapter from Controller

和自甴很熟 提交于 2021-02-08 05:19:45
问题 I am not sure if my endpoints are setup correctly. My end goal is when I call stop on both adapters, that if a file is placed in either directory where the inbound channel adapters are polling, the file will not be processed. Which is not the case -- files are still getting polled and processed. Currently, when the code runs, from the very start, 6 Task Schedulers are launched: 2015-08-03 18:12:40,011 [task-scheduler-6] DEBUG org.springframework.integration.endpoint

Download a single file via FTP with Spring Integration

旧街凉风 提交于 2021-02-07 23:14:17
问题 I was reading through the Spring Integration Documentation thinking that a file download would be pretty simple to implement. Instead, the article provided me with many different components that seem to over-qualify my needs: The FTP Inbound Channel Adapter is a special listener that will connect to the FTP server and will listen for the remote directory events (e.g., new file created) at which point it will initiate a file transfer. The streaming inbound channel adapter produces message with

Download a single file via FTP with Spring Integration

不羁的心 提交于 2021-02-07 23:14:14
问题 I was reading through the Spring Integration Documentation thinking that a file download would be pretty simple to implement. Instead, the article provided me with many different components that seem to over-qualify my needs: The FTP Inbound Channel Adapter is a special listener that will connect to the FTP server and will listen for the remote directory events (e.g., new file created) at which point it will initiate a file transfer. The streaming inbound channel adapter produces message with

Download a single file via FTP with Spring Integration

痞子三分冷 提交于 2021-02-07 23:14:09
问题 I was reading through the Spring Integration Documentation thinking that a file download would be pretty simple to implement. Instead, the article provided me with many different components that seem to over-qualify my needs: The FTP Inbound Channel Adapter is a special listener that will connect to the FTP server and will listen for the remote directory events (e.g., new file created) at which point it will initiate a file transfer. The streaming inbound channel adapter produces message with

Spring integration gateway “Dispatcher has no subscribers”

走远了吗. 提交于 2021-02-07 12:06:01
问题 I am getting an exception Dispatcher has no subscribers on the outboundChannel and can't figure out why. I am sure its something simple, I have stripped back my code to a very simple sample below: My context is: <bean id="requestService" class="com.sandpit.RequestService" /> <integration:channel id="inboundChannel" /> <integration:service-activator id="service" input-channel="inboundChannel" output-channel="outboundChannel" ref="requestService" method="handleRequest" /> <integration:channel

Spring integration gateway “Dispatcher has no subscribers”

放肆的年华 提交于 2021-02-07 12:05:16
问题 I am getting an exception Dispatcher has no subscribers on the outboundChannel and can't figure out why. I am sure its something simple, I have stripped back my code to a very simple sample below: My context is: <bean id="requestService" class="com.sandpit.RequestService" /> <integration:channel id="inboundChannel" /> <integration:service-activator id="service" input-channel="inboundChannel" output-channel="outboundChannel" ref="requestService" method="handleRequest" /> <integration:channel

spring integration : solutions/tips on connect multiple sftp server?

☆樱花仙子☆ 提交于 2021-02-07 10:46:19
问题 My spring batch project needs to download files from multiple sftp servers. the sftp host/port/filePath is config in application.properties file. I consider using the spring integration 'sftp out-bound gateway' to connect these servers and download files. but Im don't how to do this kind of configuration(I'm using java config, ) and make it work? i guess I need some way to define multiple session factory according to the number of sftp server info config in application.properties file.

How to configure JMX with Spring Boot

天大地大妈咪最大 提交于 2021-02-06 09:13:33
问题 I have created a Spring Integration application with Spring Boot. I would like to know how to configure JMX with Spring Boot. I believe by default JMX is configured when using Spring Boot Actuator. Do I need to configure anything else to be able to export MBeans for Spring Integration? Most of the example I see have the following line in the applicationContext.xml <context:mbean-export/> <context:mbean-server/> My Application.java class looks like this. package com.jbhunt.app

How to configure JMX with Spring Boot

五迷三道 提交于 2021-02-06 09:04:10
问题 I have created a Spring Integration application with Spring Boot. I would like to know how to configure JMX with Spring Boot. I believe by default JMX is configured when using Spring Boot Actuator. Do I need to configure anything else to be able to export MBeans for Spring Integration? Most of the example I see have the following line in the applicationContext.xml <context:mbean-export/> <context:mbean-server/> My Application.java class looks like this. package com.jbhunt.app