spring-integration

IMAP email channel adapter throw exception “A5 BAD invalid command or parameters;”

六月ゝ 毕业季﹏ 提交于 2019-12-10 17:49:51
问题 I am using imap-idle-channel-adapter to receive emails in spring integration: A5 SEARCH NOT (ANSWERED) NOT (DELETED) NOT (SEEN) NOT (FLAGGED) ALL A5 BAD invalid command or parameters seems the imap server regard above commands as invalid, anyone can tell me how to fix ? My debug messages: DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map DEBUG: getProvider() returning javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Oracle] DEBUG IMAPS: mail.imap

Spring Integration Java DSL - How to invoke int-http:outbound-gateway?

爱⌒轻易说出口 提交于 2019-12-10 17:35:47
问题 I have a piece in the flow where a ReST API call is made: <int:channel id="requestChannel"/> <int-http:outbound-gateway request-channel="requestChannel" reply-channel="logger" url="${api.base.uri}/data" http-method="PUT" expected-response-type="java.lang.String"/> <int:logging-channel-adapter id="logger" logger-name="logger" expression="payload" level="INFO"/> I'm trying to replicate this using Java DSL but could not find adequate documentation. Any help would be much appreciated. 回答1: Right,

Spring AMQP Integration - Consumer Manual Acknowledgement

冷暖自知 提交于 2019-12-10 16:17:00
问题 I am testing Spring-AMQP with Spring-Integration support, I've following configuration and test: <rabbit:connection-factory id="connectionFactory" /> <rabbit:queue name="durableQ"/> <int:channel id="consumingChannel"> <int:queue capacity="2"/> <!-- Message get Acked as-soon-as filled in Q --> </int:channel> <int-amqp:inbound-channel-adapter channel="consumingChannel" queue-names="durableQ" connection-factory="connectionFactory" concurrent-consumers="1" acknowledge-mode="AUTO" /> public static

How to deploy a Spring Integration app in Tomcat?

一笑奈何 提交于 2019-12-10 15:07:14
问题 I've gone through the "Spring Integration in 10 minutes" tutorial for setting up a basic Spring Integration application. I'd like to deploy this application in Tomcat and have the input channel live on the server and send the output back to a client, but I'm having a difficult time finding any examples of this. Could anyone provide me with either some links to a tutorial for how to do this or any other kind of guidance? All help is much appreciated! 回答1: Here's the response I got from the

Immutable message in Spring Integration

寵の児 提交于 2019-12-10 13:35:46
问题 I was wondering what is the reasoning behind making messages immutable in Spring Integration. Is it only because of thread-safety in multi threaded evnironments? Performance? Don't you get a performance penalization when you have to create a new message each time you want to add something to an existing message? Avoiding a range of bugs when passing by reference? Just guessing here. 回答1: The simplest way to explain this comes from the original Java Immutable Objects idea: Immutable objects

Controller mapping are not logging at startup

…衆ロ難τιáo~ 提交于 2019-12-10 13:15:59
问题 I have a requirement to upgrade the existing code which runs on jdk 8 to jdk 11 After upgrading it the controller mappings are not showing up during startup.In this application we have defined some inbound gateways for integration and we have also defined few rest controllers, They where getting logging when it was on jdk 1.8 but they are not getting logged after i upgraded.Is there any way those logs are printed. we are using spring boot 2.1.0 Release, jdk 11 spring integration. The first

how can I get the response message from Axis2 in spring integration

冷暖自知 提交于 2019-12-10 12:15:45
问题 I need to integrate my webservice (Axis2) in spring integration: I have spring-axis2-message.xml <?xml version="1.0" encoding="UTF-8"?> <beans:beans xmlns="http://www.springframework.org/schema/integration" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:beans="http://www.springframework.org/schema/beans" xmlns:stream="http://www.springframework.org/schema/integration/stream" xmlns:ws="http://www.springframework.org/schema/integration/ws" xsi:schemaLocation="http://www

spring Integration kafka outboundchannel object Injection Error by glassfish

五迷三道 提交于 2019-12-10 11:54:12
问题 Added @ImportResource("classpath:outbound-kafka-integration.xml") on top of my SpringConfig class where i create beans in Java code... Added below dependency in pom.xml <dependency> <groupId>org.springframework.integration</groupId> <artifactId>spring-integration-kafka</artifactId> <version>1.3.0.RELEASE</version> </dependency> it gives the below error when im debugging from SOAP UI client(my application is rest api)... MultiException stack 1 of 4 org.glassfish.hk2.api

Subscribe to Spring Metrics channel

删除回忆录丶 提交于 2019-12-10 11:47:01
问题 So according to the documents of Spring it will publish metrics on a REST endpoint and a message channel. The REST endpoint works fine as I get the expected result. However I would like to handle each change in the metrics. So it says it will by default publish messages to a channel called "metricsChannel" I tried to create the following class which would listen to this channel, but it does not seem to fire. Everything else has been kept default for the Spring Boot application. package

Dynamic TCP Server with Spring Integration using Java DSL

ⅰ亾dé卋堺 提交于 2019-12-10 09:34:47
问题 I am trying to create a TCP server and client by reading the property files which contains the detail of the connections. I am using Dynamic and runtime Integration Flows with the help of following reference document ( 9.20 Dynamic and runtime Integration Flows) The code is working fine while creating the client but when I am creating the server using the same with changes in the code as follow: IntegrationFlow flow = f -> f .handle(Tcp.inboundAdapter(Tcp.netServer(2221) .serializer(TcpCodecs