Questions tagged [spring-dsl]

Questions regarding the usage of the Spring Integration Java DSL (Domain Specific Language) extension

The Spring Integration JavaConfig and DSL extension provides a set of convenient Builders and a fluent API to configure Spring Integration message flows from Spring @Configuration classes.

See:

145 questions
1
vote
1 answer

Spring Integration File Writing Example

Is there any working example for file writing support of the Spring Integration DSL? I cannot find anything about DSL implementation.(e.g. a handle() step in the integration flow, etc.) Thanks.
1
vote
1 answer

Spring Integration Channeling With Bean Name vs Method Name

I have PublishSubscribeChannel like this: @Bean(name = {"publishCha.input", "publishCha2.input"}) //2 subscribers public MessageChannel publishAction() { PublishSubscribeChannel ps = MessageChannels.publishSubscribe().get(); …
sarah
  • 580
  • 1
  • 6
  • 24
1
vote
1 answer

Spring Integration Rendezous channel acknowledgement slow

I have a dsl flow which works great with Queue channel. However, when i make it synchronous using Rendezvous channel, i get acknowledgement rate at most 30 messages/second. My handlers are take just 350 microseconds to finish the process but the…
1
vote
0 answers

Apache camel endpoint handling

I have an applicationContext xml file that imports multiple resources (camel context files). I am caching the definitions of this xml before hand using new…
1
vote
2 answers

Apache camel with Spring DSL marshal to json issue

I have the following config
Ale
  • 102
  • 1
  • 7
1
vote
1 answer

How to trigger a thread to check the system time say 5pm est in a spring integration project using java dsl and spring boot

Main application:- @SpringBootApplication @Configuration public class Application { public static void main(String[] args) { new SpringApplicationBuilder() .web(false) .sources(Application.class) …
Prerna
  • 111
  • 1
  • 16
1
vote
1 answer

How to access Environment properties in the beans element of the Bean Definition DSL using Spring 5 and Kotlin

I want to define some beans depending on the values of some properties from the application.yml file of a Spring Boot Application. For instance with a number-of-beans: 5 I build a for loop to create 5 bean instances: application.yml number-of-beans:…
codependent
  • 23,193
  • 31
  • 166
  • 308
1
vote
1 answer

Apache camel with tika using spring dsl

I am trying to search for tika example with camel using spring DSL. I see the tika connector is available but got no example using spring DSL. I looked all the places including https://github.com/apache/camel/tree/master/examples#examples link but…
1
vote
2 answers

How to skip the header row(first line) of the file in springcloudstream using DSL?

I am using Spring cloud stream to read a file and split using file splitter and emit each line as a message using DSL style, the file am reading has a header row, just wondering if there is an easy way to skip the header row before/after…
1
vote
2 answers

assigning a different error handler to each handler in a chain

I have an application specifying a simple flow where a chain of services need to be invoked in a particular order to carry out some functionality. Spring integration and its DSL seems appropriate for this scenario. Any of these individual services…
edu
  • 428
  • 2
  • 10
1
vote
2 answers

Apache Camel - File Transfer on Particular Route Call

I'm trying to create a webservice which, when called look into a local directory picks up files from there and upload to the ftp server. I'm able to create a simple route which picks file from local directory and uploads to ftp server below is the…
Siddharth Sachdeva
  • 1,812
  • 1
  • 20
  • 29
1
vote
1 answer

Spring Integration DSL JmsMessageDrivenChannelAdapter infinite retry after the error handler processing

Background: We have a Spring Integration adapter written in Spring XML config as shown below. It is working perfectly in all the scenarios w.r.to error handling. All the thing, error handling does is to write the error message to a queue. Now we…
1
vote
1 answer

XML to java DSL for spring integration including UDP channel adapter

I would like to convert my XML config to Java dsl, but I can not find an example for int-ip:udp-inbound-channel-adapter in java dsl. There is TcpNetServerConnectionFactory for TCP but nothing for UDP. Only that class is subclassing…
Saša Šijak
  • 8,717
  • 5
  • 47
  • 82
1
vote
1 answer

create sftp reply-channel to reply with error or messages that was unsuccessfully sent

I am using java dsl to configure sfp outbound flow. Gateway: @MessagingGateway public interface SftpGateway { @Gateway(requestChannel = "sftp-channel") void sendFiles(List messages); } Config: @Bean public IntegrationFlow…
1
vote
1 answer

Convert @JmsListener code to String Integration DSL

@JmsListener(destination = "myListener") public void receive(Event even) { if (event.myObj().isComp()) { service1.m1(even); } if (event.myObj2().isdone()) { …
lowLatency
  • 5,534
  • 12
  • 44
  • 70