spring-integration

Spring integration deadlock using Aggregator + MessageStoreReaper + Redis?

旧城冷巷雨未停 提交于 2019-12-11 02:19:56
问题 This question is related to this post in SI forum, but as the forum is closed, I post it here to continue the thread: http://forum.spring.io/forum/spring-projects/integration/748192-messages-not-flowing-when-using-jms-channels To sum up, I have an aggregator with a Redis message store and a reaper scheduled every 60 secs. Messages are sent to the aggregator using a JMS-Channel. Here's the config: <bean id="jedisPoolConfigBean" class="redis.clients.jedis.JedisPoolConfig"> <property name=

Spring Cloud Streams - Multiple dynamic destinations for sources and sinks

孤人 提交于 2019-12-11 02:08:13
问题 There was a change request on my system, which currently listens to multiple channels and send messages to multiple channels as well, but now the destination names will be in the database and change any time. I'm having trouble believing I'm the first one to come across this, but I see limited information out there. All I found is these 2... Dynamic sink destination: https://github.com/spring-cloud-stream-app-starters/router/tree/master/spring-cloud-starter-stream-sink-router, but how would

Spring integration warning Referenced bean 'org.springframework.scheduling.support.PeriodicTrigger#0' not found"

十年热恋 提交于 2019-12-11 02:00:53
问题 I am using Spring-integration 4.0.0.M4 in my project, and in my spring-integration.xml, I use : <int:channel id="messages" > <int:queue /> <int:interceptors> <int:wire-tap channel="logger" /> </int:interceptors> </int:channel> <int:service-activator id="myService" input-channel="messages" output-channel="nullChannel" ref="processor" method="processNotif"> <int:poller task-executor="pool" fixed-rate="10" error-channel="errorChannel" max-messages-per-poll="1" /> </int:service-activator> <task

Spring Integration WS Response Soap Headers

一世执手 提交于 2019-12-11 01:33:57
问题 I have the below use case. Request is received by the ws-inbound gateway of service1. Service1 Passes the request to another ws-outbound gateway service2 Service2 ws inbound gateway has an interceptor configured, which adds a custom soap header to the response the response from service 2 is passed to the output channel of service 1 (Final response). I am able to see that soap header is added by printing the soap envelope in interceptor (service2), but it is not present in the final response.

No Messages When Obtaining Input Stream from SFTP Outbound Gateway

跟風遠走 提交于 2019-12-11 01:31:18
问题 Sometimes No Messages When Obtaining Input Stream from SFTP Outbound Gateway This is follow up question to Use SFTP Outbound Gateway to Obtain Input Stream The problem I was having in previous question appears that I was not closing the stream as shown in the int:service-activator. However, when I added the int:service-activator then I was seemed to be forced to add int:poller. However, when I added the int:poller I have noticed that sometimes now when attempting to obtain the stream the

Custom SOAP Faults in spring integration Fault code namespace

匆匆过客 提交于 2019-12-11 00:58:18
问题 I am trying to implement custom soap faults like below: @SoapFault(faultCode = FaultCode.CUSTOM, customFaultCode="{namespace}Server Error", faultStringOrReason="Error encountered when processing request message.") public class SystemFault extends BusinessException{ }. The soap fault thrown is of the below format: <.SOAP-ENV:Fault> <.faultcode xmlns:ns0="namespace">ns0:star:Server Error<./faultcode> <.faultstring xml:lang="en">Error Encountered when processing the request.<./faultstring> <.

Should I or shouldn't I use the CachingConnectionFactory with hornetq 2.4.1

浪子不回头ぞ 提交于 2019-12-11 00:55:18
问题 Based on long standing information about using the JMSTemplate with hornetq we have been using the CachingConnectionFactory when connecting to the server. Here is an example configuration, very similar to one that we are using: <bean id="jmsConnectionFactory" class="org.hornetq.jms.client.HornetQJMSConnectionFactory"> <constructor-arg name="ha"> <value>false</value> </constructor-arg> <constructor-arg name="initialConnectors"> <bean class="org.hornetq.api.core.TransportConfiguration">

Getting large response from Http Outbound Gateway in Spring Integration

江枫思渺然 提交于 2019-12-11 00:52:23
问题 I am trying to get response from Http Outbound Gateway. I have used expected-response-type="java.lang.String" . I am able to get data, data is string representation of XML, but data is large so I am getting only part of it, I am not able to find a way to get full data. In documentation they have given example to use Multipart with Http Inbound Gateway their is no reference how to use Multipart in Http Outbound Gateway. I also came to know that http outbound uses RestTemplate to make calls but

Read and download from a paginated REST-Services with spring integration

最后都变了- 提交于 2019-12-10 23:56:04
问题 Currently I am working on a Spring Integration application which has a following scenario: An int-http:outbound-gateway read from a REST-Services a list of paginated elements: about in Each page content splitted and stored in a folder to be processed later by a spring batch job. I'm quite new with spring-integration and I don't know if it's possibile to create a kind of loop with `int-http:outbound-gateway' to read all pages until the last one. We're talking about 66254 elements splitted in

Error 'is a one-way 'MessageHandler' for spring-integration aggregator DSL

╄→尐↘猪︶ㄣ 提交于 2019-12-10 23:33:34
问题 I'm trying to test some stuff with spring-integration using the DSL. This is only a test so far, the flow is simple: create some messages process (log) them in parallel aggregate them log the aggregate Apart from the aggregator, it is working fine: @Bean public IntegrationFlow integrationFlow() { return IntegrationFlows .from(integerMessageSource(), c -> c.poller(Pollers.fixedRate(1, TimeUnit.SECONDS))) .channel(MessageChannels.executor(Executors.newCachedThreadPool())) .handle(