spring-integration

Using Spring Integration with RabbitMQ

北城余情 提交于 2019-12-21 02:44:15
问题 I'm in the process of developing a messaging interface for one of our applications. The application is a service which is designed to accept a "Job", do some processing, and return the result (in the form of a File actually). The idea is to use RabbitMQ as the messaging infrastructure and Spring AMQP to handle protocol specific details. I do not want to have a tight coupling from my code to Spring AMQP, so I would like to use Spring Integration to hide the messaging api. So basically I want

How to send asynchronous requests/responses through collaborating Channel Adapters without correlating data

泪湿孤枕 提交于 2019-12-20 06:29:24
问题 Summary I'm using Spring Integration's TCP & UDP Support to proxy TCP stream traffic through my application to an upstream server, and then proxy that server's response back through my application to the client. Although this is two-way communication, I need high-volume, asynchronous throughput, so I can't use Gateways. Instead, I am trying to use Collaborating Outbound and Inbound Channel Adapters as described in section 34.8.2. Integration Component Setup Request A

Spring SFTP inbound chanel adapter delete local file

三世轮回 提交于 2019-12-20 06:24:48
问题 I have configured spring SFTP to pool the files into local from remote path, to process some jobs, then delete the local & remote file both. below configuration works fine, except the local file delete, i didn't find any configuration to delete the local file, like delete-remote-files="true" <bean id="sftpSessionFactory" class="org.springframework.integration.sftp.session.DefaultSftpSessionFactory" p:host="${sftp.host}" p:port="${sftp.port}" p:user="${sftp.username}" p:password="${sftp

Spring SFTP inbound chanel adapter delete local file

前提是你 提交于 2019-12-20 06:23:00
问题 I have configured spring SFTP to pool the files into local from remote path, to process some jobs, then delete the local & remote file both. below configuration works fine, except the local file delete, i didn't find any configuration to delete the local file, like delete-remote-files="true" <bean id="sftpSessionFactory" class="org.springframework.integration.sftp.session.DefaultSftpSessionFactory" p:host="${sftp.host}" p:port="${sftp.port}" p:user="${sftp.username}" p:password="${sftp

How to move files using ExpressionEvaluatingRequestHandlerAdvice

廉价感情. 提交于 2019-12-20 06:08:11
问题 In the manual for ExpressionEvaluatingRequestHandlerAdvice, it clearly says, A typical use case for this advice might be with an <ftp:outbound-channel-adapter/>, perhaps to move the file to one directory if the transfer was successful, or to another directory if it fails . But I cannot figure out expression to move payload from current directory to another one. This example just deletes or renames the file: <bean class="org.springframework.integration.handler.advice

Spring TCP Client without Transformer

≡放荡痞女 提交于 2019-12-20 05:57:37
问题 I followed this example for setting up a TCP Client in Spring. Below is my tcpClientServerDemo-context.xml file where the transformer lies. Can someone help me remove the transformer and send the data as it is without any modifications? If I try to remove the line reply-channel='clientBytes2StringChannel' or even make it null, I get exceptions when building the project. <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3

How To get JMS Destination from WMQ

杀马特。学长 韩版系。学妹 提交于 2019-12-20 05:54:10
问题 I am consuming a message from wmq using spring integration but i am not able to get JMS Destination in message header. I would want to know the queue name from where the message is consumed. In active mq we will be getting a parameter called JMS Destination where the queue name will be available. Is there a possiblity to find queue name from wmq using spring integration message. 回答1: In Spring Integration, the JMSDestination is mapped to a header named jms_destination ( JmsHeaders.DESTINATION

MessageStore backed QueueChannel with Spring Integration+ Java Config

ⅰ亾dé卋堺 提交于 2019-12-20 04:28:38
问题 The Spring Integration reference guide refers to using a MessageStore implementation to provide persistence to a QueueChannel. It's mentioned many times but all examples are using XML config, i.e <int:channel id="dbBackedChannel"> <int:queue message-store="channelStore"/> </int:channel> <bean id="channelStore" class="o.s.i.jdbc.store.JdbcChannelMessageStore"> <property name="dataSource" ref="dataSource"/> <property name="channelMessageStoreQueryProvider" ref="queryProvider"/> </bean> But the

How to use Spring Integration 5 with Spring Boot 1.5.x

北战南征 提交于 2019-12-20 03:23:06
问题 I'm trying to setup a project that uses Spring Boot 1.5.10 and Spring Integration. It seems that Spring Boot 1.5.x uses the old version of Spring Integration, which is 4.3.14. The project also requires spring-integration-kafka which is based on Spring Integration 5.0.1. So, I'm ending up in a bit of dependencies hell. Is there a way for Spring Boot 1.5.x to use the latest Spring Integration? 回答1: I have Spring Boot 1.5.9 and I upgraded to Spring Integration IP 5.0.2. I'm guessing this is why

How to use Spring Integration 5 with Spring Boot 1.5.x

夙愿已清 提交于 2019-12-20 03:23:06
问题 I'm trying to setup a project that uses Spring Boot 1.5.10 and Spring Integration. It seems that Spring Boot 1.5.x uses the old version of Spring Integration, which is 4.3.14. The project also requires spring-integration-kafka which is based on Spring Integration 5.0.1. So, I'm ending up in a bit of dependencies hell. Is there a way for Spring Boot 1.5.x to use the latest Spring Integration? 回答1: I have Spring Boot 1.5.9 and I upgraded to Spring Integration IP 5.0.2. I'm guessing this is why