Questions tagged [spring-integration-dsl]

861 questions
0
votes
1 answer

Representing thread pooling in Spring Integration rather than ExecutorService

Currently, code similar to the following exists in one of our applications: @Component public class ProcessRequestImpl { private ExecutorService executorService; public processRequest(...) { // code to pre-process request …
user1052610
  • 4,440
  • 13
  • 50
  • 101
0
votes
1 answer

Split up an IntegrationFlow for testing

I am planning to test an IntegrationFlow and have a question? Let me walk you thru what I am planning to do. IntegrationFlows .from(Amqp.inboundAdapter(connectionFactory, queue) .acknowledgeMode(AcknowledgeMode.AUTO) …
Wizard
  • 1,154
  • 2
  • 14
  • 41
0
votes
1 answer

Invoke Spring Controller from Spring Integration flow

Hi I have a little problem. I want to invoke spring controller manually but I have an exception. Firstly, let me show you some integration flow and controller: @Bean public IntegrationFlow flow() { return IntegrationFlows.from( …
0
votes
1 answer

concurrent consumers in context to spring integration

In spring integration application, I am using concurrent consumers to consume and process the multiple messages at a time. In my application, I configured all beans to a singleton. I am assuming if I am going to parallelize the processing by using…
0
votes
1 answer

spring amqp dead letter queue does not work with transaction

How can I setup listener container when is channelTransacted(true) to throw message into dead letter queue when is something wrong instead of requeue? When I do not use channelTransacted, everything works fine and I can see the message in the dead…
Bully
  • 139
  • 1
  • 14
0
votes
0 answers

Trying to test a gateway in spring integration using mockito, but when autowiring the gateway its always null

Trying to test a gateway in spring integration using mockito but when autowiring the gateway its always null. I am using annotations to create a context for writing the test case, but the mockito and annotations are all working weird. Getting no…
0
votes
1 answer

spring integration amqp listener transacted

What is difference between acknowledgeMode.AUTO and acknowledgeMode.MANUAL when is channelTransacted = true on message listener container? I understand that when I want to use acknowledgeMode.MANUAL with channelTransacted=false, the listener must…
0
votes
1 answer

Spring Integration DSL - JdbcPollingChannelAdapter results not queueing

I swear I had this working, but when I can back to it after a few months (and an upgrade to Boot 1.5.9), I am having issues. I set up a JdbcPollingChannelAdapter that I can do a receive() on just fine, but when I put the adapter in a flow that…
0
votes
1 answer

Spring Integration DSL: Disable double DEBUG logging in AbstractMessageHandler

I'm using the .log() function from Spring Integration DSL and I want to create a log at the DEBUG level. Here is an example: ... .log(LoggingHandler.Level.DEBUG, "Http Input Flow V2", message -> { …
matthjes
  • 671
  • 7
  • 20
0
votes
0 answers

JMS Local Transactions not working when using a CachingConnectionFactory in Spring Integration

I am using CachingConnectionFactory to cache my JMS Broker Connections for IBM MQ. Messages under the local transaction are not rolled back even if I throw an explicit exception. But when I remove the Caching and use just a plain JMS Connection…
0
votes
1 answer

ExpressionEvaluatingRequestHandlerAdvice sends message to both success and fail channel in case of SpelException

I had asked few doubts in the comments section of this thread. While debugging the application I noticed some possible code errors. Are they bugs or features? In ExpressionEvaluatingRequestHandlerAdvice::evaluateSuccessExp‌​ression, the exception…
Nets
  • 95
  • 2
  • 11
0
votes
1 answer

Connecting two Queue Channels backed by JDBC Store in Spring Intgegration DSL

I'm trying to connect two Queue Channels (backed by JDBC Store). @Configuration public class DemoIntegration { @Bean public IntegrationFlow flow(MessageChannel firstJDBCChannel, MessageChannel…
0
votes
1 answer

Service Activator Handlers not running serially

I am unable to get the service activator handlers run serially, they don't seem to run one after the other. In the below code, the fileWriterMessageHandler method is called before the fileUpload method. What is the standard return value that the…
Raven21
  • 35
  • 2
  • 9
0
votes
1 answer

Spring Integration - File Inbound Adapter - set id

Does anyone know how you can setup the id for an FileInboundChannelAdapterSpec? This is how I am building the inbound adapter: Files.inboundAdapter(new File("etc")).nioLocker().preventDuplicates(); Thanks in advance.
Cristi
  • 180
  • 15
0
votes
1 answer

Optimise Consuming messages from rabbitmq using Spring Integration

I am attempting to build an IntegrationFlowFactory to easily build integration flows for passing events between application contexts. Everything seems to work, and events are being published very quick. However i cannot figure out why the consuming…