spring-integration

Could not write request: no suitable HttpMessageConverter found for request type and content type [application/x-java-serialized-object]

爷,独闯天下 提交于 2019-12-01 13:58:23
I am trying to post an xml request to a third party server and expecting an xml response back. I am here by attaching the source code for configuring Cnfiguration,gateways & channels, Customized Rest Template class and Test Client to execute. We have various message converters for XML Posting but despite that it is always saying no suitable HTTPMessage Converters /**** Gateway & Channel Configuration class****/ @Configuration @MessagingGateway(name = "EntryGateway", defaultRequestChannel = "EntryChannel", defaultRequestTimeout = "2000", defaultReplyChannel = "ExitChannel", defaultReplyTimeout

Spring Integration & Retry: Do I need a separate retry bean for each service-activator?

我与影子孤独终老i 提交于 2019-12-01 13:50:27
I've got a spring integration pipeline and I've got a number of different service activators that I want to enable retry for. I want to use the same retry policy (i.e. the number of retries, back-off policy, etc). Can I just have one bean that implements the retry policy and use it for several different service activators, or does each service activator need its own retry bean? In other words, can I just make one bean "retryWithBackupAdviceSession" and set it the request-hadler-advice-chain for several service activators? Or does each one need its own? Here's an example of the retry policy I'm

Spring Integration & Retry: Do I need a separate retry bean for each service-activator?

拟墨画扇 提交于 2019-12-01 12:37:39
问题 I've got a spring integration pipeline and I've got a number of different service activators that I want to enable retry for. I want to use the same retry policy (i.e. the number of retries, back-off policy, etc). Can I just have one bean that implements the retry policy and use it for several different service activators, or does each service activator need its own retry bean? In other words, can I just make one bean "retryWithBackupAdviceSession" and set it the request-hadler-advice-chain

Could not write request: no suitable HttpMessageConverter found for request type and content type [application/x-java-serialized-object]

半腔热情 提交于 2019-12-01 12:29:44
问题 I am trying to post an xml request to a third party server and expecting an xml response back. I am here by attaching the source code for configuring Cnfiguration,gateways & channels, Customized Rest Template class and Test Client to execute. We have various message converters for XML Posting but despite that it is always saying no suitable HTTPMessage Converters /**** Gateway & Channel Configuration class****/ @Configuration @MessagingGateway(name = "EntryGateway", defaultRequestChannel =

Spring integration: handle http error with oubound gateway

与世无争的帅哥 提交于 2019-12-01 12:08:16
How can I handle exceptions in an http outbound gateway? When i receive status code 500 or 400..., an exception is shown. So What should I do to handle http error using spring integration. My configuration is like: <int:inbound-channel-adapter channel="quakeinfotrigger.channel" expression="''"> <int:poller fixed-delay="60000"></int:poller> </int:inbound-channel-adapter> <int:channel id="quakeinfo.channel"> <int:queue capacity="10" /> </int:channel> <int:channel id="quakeinfotrigger.channel"></int:channel> <int:channel id="error.channel"> <int:queue capacity="10" /> </int:channel> <int:service

Move files from one directory to another when request coming from another system

∥☆過路亽.° 提交于 2019-12-01 12:08:06
问题 I want to use read files in one directory and move to another directory, I am using spring-integration for this. I want to execute the task(move files to output directory) when request coming from another system. I do not want to run file mover repeatedly, Is there a way to do this in Spring Integration? Thank you in advance, Udeshika 回答1: There are some tricks you can do with pollers, such as the FireOnceTrigger I mentioned in this answer. But in this case, probably the simplest solution is,

Spring MqttPahoMessageDrivenChannelAdapter Lost connection:Connection lost; retrying

亡梦爱人 提交于 2019-12-01 11:42:27
问题 We are using Spring message-driven-channel-adapter to subscribe MQTT topic. But we are getting below error very frequently. I have tested connection using JavaScript client(mqttws31.js), which is working fine. Means there is no issue with connection. Error :- org.springframework.integration.mqtt.inbound.MqttPahoMessageDrivenChannelAdapter connectionLost SEVERE: Lost connection:Connection lost; retrying... MQTT message :- [payload=6483D03E4C75BA943148F18D73,1.00,1E, headers={mqtt_retained

Enabling logging in spring integration utility

吃可爱长大的小学妹 提交于 2019-12-01 11:04:22
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="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns

Spring Integration / JSch: Auth fail

时光怂恿深爱的人放手 提交于 2019-12-01 10:54:03
I'm trying to use Spring Integration's SFTP Inbound Channel Adapter, but I'm stuck here: 20:29:30,458 INFO [com.jcraft.jsch] (task-scheduler-6) Connecting to deployment port 22 20:29:30,484 INFO [com.jcraft.jsch] (task-scheduler-6) Connection established 20:29:30,514 INFO [com.jcraft.jsch] (task-scheduler-6) Remote version string: SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1 20:29:30,514 INFO [com.jcraft.jsch] (task-scheduler-6) Local version string: SSH-2.0-JSCH-0.1.45 20:29:30,514 INFO [com.jcraft.jsch] (task-scheduler-6) CheckCiphers: aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128

spring integration inbound gateway http request headers

放肆的年华 提交于 2019-12-01 10:29:18
I have files stored in MongoDB which can be uploaded/downloaded/deleted via a Rest service. I'd like to download files from MongoDB via Spring Integration (+Boot+Embedded Jetty) but I can't figure out how to set the Content-Disposition header properly because the downloaded file has the correct payload but the filename is wrong (it's receiveGateway without any extension): xml config <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:int="http://www.springframework.org/schema/integration"