spring-integration

I need current easy to follow instructions for configuring spring integration kafka from XML

ⅰ亾dé卋堺 提交于 2019-12-13 20:44:41
问题 The spring integration kafka model has changed sufficiently as it has been worked on and simplified that the extant demos, manuals, and instructions don't work any more. The current official demos are all built around annotations, which are cool, but largely unreadable, and are not appropriate for my architecture in which the jobs are deployed and managed separately from the java code. Is there a current (2019) tutorial for configuring, in XML , spring integrations producers and consumers?

How to enable IMAPFolder read-write mode in Spring Mail Integration

随声附和 提交于 2019-12-13 20:23:13
问题 I am using the following Java code in my Spring Boot App (v2.1.6.RELEASE): @Bean public IntegrationFlow mailListener() { SearchTermStrategy searchTermStrategy = (supportedFlags, folder) -> { SearchTerm search = new AndTerm(new SubjectTerm("trigger the build"), new FlagTerm(new Flags(Flags.Flag.SEEN), false)); return search; }; return IntegrationFlows.from(Mail.imapInboundAdapter("imaps://usr:pwd@imap.host.com/INBOX").searchTermStrategy(searchTermStrategy).shouldMarkMessagesAsRead(true).get(),

Add adviceChain to StandardIntegrationFlow to set a CountDownLatch on a message handler

六眼飞鱼酱① 提交于 2019-12-13 19:12:07
问题 I´m trying to add a CountDownLatch to an org.springframework.integration.dsl.StandardIntegrationFlow in Spring Integration via an adviceChain and the BeanFactoryPostProcessor . The reason for this is to monitor, if the message handler within this integration flow was called and has finished his work or not. There is a solution without using the Java DSL of Spring Integration here: spring-integration unit test outbound-channel adapter. But sadly it´s not working for me because of the Java DSL

spring integration aws s3 delete local file

北慕城南 提交于 2019-12-13 18:54:40
问题 I am using spring integration to read file from s3 however this works but my local directory is getting full I want to delete files from local directory after files are processed from s3? <bean id="credentials" class="org.springframework.integration.aws.core.BasicAWSCredentials"> <property name="accessKey" value="${accessKey}"/> <property name="secretKey" value="${secretKey}"/> </bean> <bean id="clientConfiguration" class="com.amazonaws.ClientConfiguration"> <property name="proxyHost" value="

Passing 2/n-number of (multiple) parameters to 'int-jdbc:stored-proc-outbound-gateway'

允我心安 提交于 2019-12-13 18:26:57
问题 Hi guys i need help here :) Previously when I tried to pass only one variable, it was working fine. Now as soon as I am trying to pass 2/n-number of parameters by using Spring Integration, getting following 'payload' exceptions, which I am not clear about. Exception I am getting is as follows: [2014-10-31 12:12:43,943][WARN ]GatewayProxyFactoryBean$MethodInvocationGateway.doSendAndReceive: failure occurred in gateway sendAndReceive org.springframework.messaging.converter

Spring integration errorChannel, error handle

99封情书 提交于 2019-12-13 17:17:44
问题 Scenario could be: my expectation could be 10 datapoint in batch, and I want to give response for {failed 5, pass 5} or sth. my logic is to split the batch into data element and do validation. successful validation will send to aggreagtor, failed validation will throw error and pick up by error channel. recipient-list-router take the errorChannel as inputChannel and 2 filter connect to it, the purpose is to filter some type of error to send response directly(eception unrelated to user input -

how to increment a message header

南笙酒味 提交于 2019-12-13 16:23:02
问题 Is there a way in Spring Integration Java DSL to modify an existing message header? I am reimplementing a download retry mechanism using SI Java DSL, and want to increment a message header holding the download attempts when a failure occurs, before routing the message based on the number of attempts compared to a limit. I have the routing working nicely based upon the RouterTests included with SI. With HeaderEnrichers I can easily add a header, but I can't see a way to modify an existing

Does JpaPollingChannelAdapter have similar functionality to JdbcPollingChannelAdapter's UpdateSql?

戏子无情 提交于 2019-12-13 16:09:58
问题 I have a small Spring Boot application which uses Spring Integration to query an Oracle database for records of a certain status. Initially I had a working POC using JdbcPollingChannelAdapter which also defined an update statement which changed the status of found records so they were not re-scanned. The application uses Hibernate and thus I wanted to replace the Jdbc implementation with a JPA approach. Thus I successfully implemented a JpaPollingChannelAdapter with a JpaExecutor to retrieve

Spring Integration Kafka adaptor not producing message

荒凉一梦 提交于 2019-12-13 13:31:14
问题 I am struggling this for days now. I am using SI adaptor for kafka under Spring-boot container. I have configured zookeeper and kafka on my machine. I also created console producer and consumer tested it and everything works fine(I manage to produce vis the console messages and have the console consumer to consume them). I tried now to produce messages via Spring integration kafka outbound adapter but the console consumer wont consume the message SI/Spring xd xml: <int:publish-subscribe

Spring Boot TCP Client

亡梦爱人 提交于 2019-12-13 05:41:00
问题 I'm looking for an example to connect TCP through sping boot without xml(spring-integration). I got the following snippet from How to create a Tcp Connection in spring boot to accept connections? URL. in this example, just main method alone enough to connect tcp. why other beans and the transformer are declared here? Is it wrong? Instead of using simple Java socket client to accept the response, I would like to integrate with Spring. But no suitable examples available using Java DSL. Could