Questions tagged [spring-integration-dsl]

861 questions
0
votes
1 answer

Spring Integration route message from Transformer

I have intergration setup as IntegrationFlows.from("ValidFile") .transform( Transformer(new FindTheDepartItbelongs()) //basically file has to match to some depoartment .transform(new FileParserTransformer() .transform(new…
Makky
  • 17,117
  • 17
  • 63
  • 86
0
votes
1 answer

ActiveMQ: Dispatched queue contains more messages then prefetch size

I have prefetch size set to 1 (jms.prefetchPolicy.all=1 in url). In web console I can see that prefetch is 1 for all of my consumers. One consumer got stuck and there were 67 messages on his dispatch queue -see my screenshot Could you help me…
0
votes
2 answers

Spring Integration error is attaching completed payload

I have a listener to the JMS. Once I read the message then I convert to my custom object public IntegrationFlow queueProcessorFlow() { return IntegrationFlows.from(Jms.inboundAdapter(jmsTemplate) …
Makky
  • 17,117
  • 17
  • 63
  • 86
0
votes
1 answer

spring integration java DSL for complex business logic

We have most of our application logic using typical Springboot components. We are looking at using spring boot integration. The flow is to provision servie for end user. Typically we get a request and it has to orchestrate by calling a bunch of…
basu76
  • 441
  • 10
  • 19
0
votes
1 answer

Spring Integration: Http with SFTP Gateway

I am trying to Connect both Http and SFTP Gateways using Spring Integeration...and wants to read list of files, i.e. running LS command. This is my code: // Spring Integration Configuration.. @Bean(name = "sftp.session.factory") public…
0
votes
1 answer

Why are interemdiate "filters" of SI "pipes-and-filters" architecture called Message Endpoints?

A fragment from doc A Message Endpoint represents the "filter" of a pipes-and-filters architecture. As mentioned earlier, the endpoint’s primary role is to connect application code to the messaging framework and to do so in a non-invasive…
Ekaterina
  • 1,642
  • 3
  • 19
  • 36
0
votes
1 answer

Why are not all the messages polled from QueueChannel?

I created a QueueChannel with capacity=500 and send 1000 messages there. Not all of them are printed; the number of the last one is 567. Why is this the case? Here is the code: @SpringBootApplication @IntegrationComponentScan public class…
Ekaterina
  • 1,642
  • 3
  • 19
  • 36
0
votes
1 answer

Spring Cloud Contract - Stub Runner for messaging by using AmqpInboundChannelAdapterSpec

I tried to integrate Spring Cloud Contract Verifier Stub Runner’s messaging module with Spring AMQP. I created SimpleMessageListenerContainer with MessageListener and it works fine. But I have another approach. I use a AMQP support for Spring…
0
votes
1 answer

Spring Integration Event Listener Inbound Adapter

I've got a question, i want to implement an input adapter in spring integration using dsl, as an event listener and redirect messages from that event listener to a channel. desired code: @Bean public IntegrationFlow listenerFlow() { return…
0
votes
1 answer

Spring-Integeration SFTP Gateway for Mput Operation

I am trying to upload multiple files using SFTP Outbound Gateway. My Java code is like: final DirectChannel reqWriteChannel = (DirectChannel) context.getBean("toWriteChannel"); final PollableChannel repWriteChannel = (PollableChannel)…
0
votes
1 answer

Spring Integration Flow Log on Outbound success

how can I add logs if file is transferred successfully. I want to log file name and some values form my config object return IntegrationFlows.from(Sftp.inboundAdapter(inboundSftp) .localDirectory(this.getlocalDirectory(config.getId())) …
0
votes
1 answer

Spring integration scatterGather usage

In my use case I need to make 2 REST calls to fetch a list of items based on departmentId. I need to merge the 2 lists and process them. I am using the scatterGather pattern, i can see that the fetchRoles & fetchGroups are being called but i dont…
nagendra
  • 593
  • 1
  • 9
  • 29
0
votes
1 answer

MarshallingWebServiceOutboundGateway takes too much for the first request

We have lot of soap services that we use to connect to and every time the first to the same service takes lot of time to initiate from integration and subsequent requests are fast cutting down by 60% of response time. Analyzed on the JAXB bindings…
0
votes
1 answer

Spring integration Java DSL: How to create the JSON in the integration flow

How to create the JSON in the integration flow. I want to send the JSON { "username": "user", "password": "password1" } to the URL http://localhost:8051/session My integration flow builder…
Mike
  • 541
  • 1
  • 4
  • 18
0
votes
1 answer

Spring Integration SLA option

I have a springboot integration application that listen for the files in the directory based on some parameter like startTimeScan endTimeScan Days to scan I am using Cron expression that works fine but now I have a challenge that some of the…
Makky
  • 17,117
  • 17
  • 63
  • 86