spring-integration

Enabling logging in spring integration utility

强颜欢笑 提交于 2019-12-30 11:02:53
问题 Below I have the program to send a message and consume a message from queue, right now I have commented out the sending part and only want to consume the messages from queue Now I want to enable logging in the below program such that a log file is generated in my c: drive and inside that log file it should indicate that what message it is consuming at what time stamp please advise how to configure logging in the below configuration file <?xml version="1.0" encoding="UTF-8"?> <beans xmlns=

Enabling logging in spring integration utility

馋奶兔 提交于 2019-12-30 11:01:09
问题 Below I have the program to send a message and consume a message from queue, right now I have commented out the sending part and only want to consume the messages from queue Now I want to enable logging in the below program such that a log file is generated in my c: drive and inside that log file it should indicate that what message it is consuming at what time stamp please advise how to configure logging in the below configuration file <?xml version="1.0" encoding="UTF-8"?> <beans xmlns=

Enabling logging in spring integration utility

我的梦境 提交于 2019-12-30 11:01:03
问题 Below I have the program to send a message and consume a message from queue, right now I have commented out the sending part and only want to consume the messages from queue Now I want to enable logging in the below program such that a log file is generated in my c: drive and inside that log file it should indicate that what message it is consuming at what time stamp please advise how to configure logging in the below configuration file <?xml version="1.0" encoding="UTF-8"?> <beans xmlns=

Spring Integration MQTT Subscriber (paho) stops processing messages

主宰稳场 提交于 2019-12-29 09:49:07
问题 We're experiencing an issue with one of our MQTT subscribers in Spring integration (4.0.3.RELEASE running on Tomcat 7 with the Paho MQTT Client 0.4.0). The issue is with a subscriber on a heavily used topic (lots of messages). The devices sending the messages to the topic are devices in the field connecting over GPRS. Spring integration and the broker (Mosquitto) are running on the same server. The issue seems to appear after doing a couple of redeploys on the Tomcat without restarting the

how dynamic create ftp adapter in spring integration?

自闭症网瘾萝莉.ら 提交于 2019-12-28 06:52:33
问题 Thanks for attention i used spring integration in my project, i want to retrieve many input file from multiple ftp server with different address as bellow image: how to create dynamically inbound-adapter in my project to polling and retrieve files from servers? 回答1: See the dynamic-ftp sample. While it only covers the outbound side, there are links in the README to discussions about what needs to be done on the inbound side (put each adapter in a child context that send messages to a channel

Writing to a remote file using Spring Integrations Sftp Streaming java configuration

北城以北 提交于 2019-12-25 16:42:06
问题 How to write to a remote file using Spring integrations Sftp Streaming .I got some code using xml but I have to strictly use java configuration and I cant find any . I have to keep on appending some data to the file after some validation failure.So its not a one time write/transfer but I have to maintain the connection with remote and keep on appending the file with error logs.Any help appreciated. 回答1: Use an SftpRemoteFileTemplate execute() with a SessionCallback ... SftpRemoteFileTemplate

how should a message look like to be a response

左心房为你撑大大i 提交于 2019-12-25 13:16:04
问题 I have read and followed the example in http://docs.spring.io/spring-integration/reference/html/ip.html#ip-correlation I have a spring-integration server <int-ip:tcp-connection-factory id="socketserver" type="server" port="30124" using-nio="true" mapper="mapper" deserializer="jsonSerializer" serializer="jsonSerializer" single-use="false"/> with this mapper from above link: <bean id="mapper" class="org.springframework.integration.ip.tcp.connection.MessageConvertingTcpMessageMapper">

how should a message look like to be a response

☆樱花仙子☆ 提交于 2019-12-25 13:15:10
问题 I have read and followed the example in http://docs.spring.io/spring-integration/reference/html/ip.html#ip-correlation I have a spring-integration server <int-ip:tcp-connection-factory id="socketserver" type="server" port="30124" using-nio="true" mapper="mapper" deserializer="jsonSerializer" serializer="jsonSerializer" single-use="false"/> with this mapper from above link: <bean id="mapper" class="org.springframework.integration.ip.tcp.connection.MessageConvertingTcpMessageMapper">

spring batch remote chunking doesn't queue messages but runs it locally?

对着背影说爱祢 提交于 2019-12-25 12:47:43
问题 Below is my configuration for spring batch remote chunking. My steps are running locally instead of remotely. I cant see messages in rabbitmq. <beans:bean id="importExchangesChunkItemWriter" class="org.springframework.batch.integration.chunk.ChunkMessageChannelItemWriter" scope="step" p:messagingOperations-ref="importExchangesMessagingTemplate" p:replyChannel-ref="importExchangesReplyChannel"> </beans:bean> <beans:bean id="importExchangesChunkHandler" class="org.springframework.batch

spring batch remote chunking doesn't queue messages but runs it locally?

痴心易碎 提交于 2019-12-25 12:47:06
问题 Below is my configuration for spring batch remote chunking. My steps are running locally instead of remotely. I cant see messages in rabbitmq. <beans:bean id="importExchangesChunkItemWriter" class="org.springframework.batch.integration.chunk.ChunkMessageChannelItemWriter" scope="step" p:messagingOperations-ref="importExchangesMessagingTemplate" p:replyChannel-ref="importExchangesReplyChannel"> </beans:bean> <beans:bean id="importExchangesChunkHandler" class="org.springframework.batch