Questions tagged [spring-integration-dsl]
861 questions
0
votes
1 answer
Can SpEL in Spring Integration Router use Java's String class methods
This is an extension question to How to use SpEL to read payload and header content in a Spring Integration Router
Technologies in my project
Spring Boot 2
Spring Integration (XML style)
Java 8
Tomcat 9.x/Liberty 19.0.0.1
As a part of my Spring…

bmylavar
- 61
- 1
- 12
0
votes
1 answer
Testing error handling with direct channels and source with poller
I have a following flow implemented in Spring Integration DSL:
Take feed from HTTP
Enrich errorChannel header (point of handling all exception downstream here).
Transform message to be a Collection
Split Collection into sepearate messages
Send each…

Arkadiusz Migała
- 927
- 1
- 8
- 14
0
votes
2 answers
Spring Integration aggregator's release strategy based on last modified
I'm trying to implement the following scenario:
I get a bunch of files that have common file pattern, i.e. doc0001_page0001, doc0001_page0002, doc0001_page0003, doc0002_page0001 (where doc0001 would be one document consisting of 3 pages that I…

Blink
- 1,408
- 13
- 21
0
votes
1 answer
Spring Integration: Json transformer with snake case
I'm using Spring Integration + Spring Cloud Stream to create the following flow:
@Bean
public IntegrationFlow testEventFlow(){
return IntegrationFlows.from(TestEventSink.INPUT)
.transform(Transformers.fromJson(TestEvent.class))
…

italktothewind
- 1,950
- 2
- 28
- 55
0
votes
1 answer
Multiple Filter Expression with Spring Integration Flow
I am working with spring integration flow and I know how to add filter expression
IntegrationFlows.from(Sftp.inboundAdapter(inboundSftp)
.localDirectory(this.getlocalDirectory(config.getId()))
.deleteRemoteFiles(true)
…

Umair
- 119
- 13
0
votes
1 answer
problem with jpa inbound channel adapter output
@Bean
public JpaPollingChannelAdapter reimStgResponseJpaInboundAdapter() {
return Jpa
.inboundAdapter(entityManager)
.nativeQuery(responseQueryString)
//.expectSingleResult(true)
.get();…

Guru
- 2,739
- 1
- 25
- 27
0
votes
1 answer
Not able insert through jpa outbound gateway
@Bean
public IntegrationFlow reimInvJpaOutbound() {
return IntegrationFlows
.from("reimInvProcessChannel")
.handle(reimJpaHandlers.reimStgInsertJpaHandler())
.log()
…

Guru
- 2,739
- 1
- 25
- 27
0
votes
1 answer
spring-integration group messages by classifier
With Java 8 streams, I can group messages by a classifier:
Map> grouped = Arrays.asList("a", "b", "b", "b", "c")
.stream()
.collect(Collectors.groupingBy(Function.identity()));
I want to write an aggregator…

dschulten
- 2,994
- 1
- 27
- 44
0
votes
1 answer
How to parameterize an object in integration flow?
I has integration flow for polling data from database. I set up message source which return list of object, this list I want to pass to method handle in subFlow.
It's code for this goals, but I get a compilation error: incompatible types Message to…

Roman
- 61
- 1
- 6
0
votes
1 answer
Duplicate file processing by FileSystemPersistentAcceptOnceFileListFilter with MongoDB Metadatastore
Two instances of our spring integration application deployed on host1 and host2 are processing incoming files on a shared mount point /opt/tomcat/in
Sometimes both applications are processing the same file causing duplicate file processing.
We are…

ccsears
- 11
- 2
0
votes
2 answers
Echo socket service in Spring Integration DSL using Channels and Gateways
This is variant of my question How to implement simple echo socket service in Spring Integration DSL. A good working solutions was introduced but I would like to explore alternatives. Particularly I am interested in solution based on using inbound…

Espinosa
- 2,491
- 24
- 28
0
votes
1 answer
How to use SpEL to read payload and header content in a Spring Integration Router
Technologies in my project
Spring Boot 2
Spring Integration (XML style)
Java 8
Tomcat 9.x/Liberty 19.0.0.1
As a part of my Spring Integration project (REST API with an inbound-http-gateway, that takes an XML input and produces an XML output), I am…

bmylavar
- 61
- 1
- 12
0
votes
1 answer
Correlate messages between 2 JMS queues using Spring integration components
I have 2 JMS queues and my application subscribes to both of them with Jms.messageDrivenChannelAdapter(...) component.
First queue receives messages of type Paid. Second queue receives messages of type Reversal.
Business scenario defines correlation…

Patrik Mihalčin
- 3,341
- 7
- 33
- 68
0
votes
1 answer
How to route using message headers in Spring Integration DSL Tcp
I have 2 server side services and I would like route messages to them using message headers, where remote clients put service identification into field type.
Is the code snippet, from server side config, the correct way? It throws cast exception…

Espinosa
- 2,491
- 24
- 28
0
votes
1 answer
Poll on HttpOutboundGateway
@Bean
public HttpMessageHandlerSpec documentumPolledInbound() {
return Http
.outboundGateway("/fintegration/getReadyForReimInvoices/Cz", restTemplate)
.expectedResponseType(String.class)
.errorHandler(new…

Guru
- 2,739
- 1
- 25
- 27