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
2
votes
2 answers

Spring Integration with Jackson ObjectMapper and Java 8 Time (JSR-310)

I am struggling with configuring a "custom" ObjectMapper to be used by the Spring Integration DSL transformers. I receive an java.time.Instant json representations that I would like to parse to object properties. i.e: {"type": "TEST",…
magiccrafter
  • 5,175
  • 1
  • 56
  • 50
2
votes
1 answer

Http outbound channel adapter with basic authentication

I want to use Spring Boot and Integration DSL to send messages as HTTP Post to a rest service. Does anyone have an example of how to do this with (basic) authentication? Everything else seems to be working fine. The log shows…
Jaffa
  • 501
  • 1
  • 8
  • 16
2
votes
1 answer

Spring Integration DSL KafkaProducerContext configuration

I am trying to adapt the following example: https://github.com/joshlong/spring-and-kafka with latest stable versions of the following libraries: org.apache.kafka > kafka_2.10 > 0.8.2.2 org.springframework.integration > spring-integration-kafka >…
magiccrafter
  • 5,175
  • 1
  • 56
  • 50
2
votes
0 answers

Spring Integration Error -- Dispatcher has no subscribers with Spring DSL

I keep getting an Exception for the below code: org.springframework.integration.MessageDispatchingException: Dispatcher has no subscribers @Bean public MessageChannel topicChannel(){ return new DirectChannel(); } @Bean public ActiveMQQueue…
Digital
  • 549
  • 1
  • 7
  • 26
2
votes
2 answers

Static code analysis apache camel Spring dsl

Iam trying to implement static code analysis for Apache Camel not only for java but also XML based DSL.Is there any SCA Tool available?
Ravi
  • 1,247
  • 4
  • 15
  • 35
2
votes
1 answer

Spring integration DSL example of file polling inbound channel adapter

Can't find an example anywhere using spring integration DSL only xml. Any pointers appreciated, also need the poller to trigger on file creation and modification
Ant
  • 69
  • 1
  • 11
2
votes
1 answer

Spring Integration 4 - configuring a LoadBalancingStrategy in Java DSL

I have a simple Spring Integration 4 Java DSL flow which uses a DirectChannel's LoadBalancingStrategy to round-robin Message requests to a number of possible REST Services (i.e. calls a REST service from one of two possible service endpoint…
Going Bananas
  • 2,265
  • 3
  • 43
  • 83
2
votes
1 answer

Camel Content based router with XPath not working

I'm implementing a content based router in camel using XPath. But for some reason the XPath expression doesn't evaluate the content and always the otherwise path is chosen. This is the route I defined in my camel-context:
Niels
  • 599
  • 5
  • 28
1
vote
1 answer

Spring Integration - Stop specific messages sending until other messages have been successfully sent

I'm quite new to Spring Integration and am having some difficulties with the following issue: I have several files stored in my DB. I have functionality that allows users to specify one or more of these files to export to a particular SFTP…
1
vote
1 answer

How to handle message loss in queue channel?

I'm using a queue channel with queue capacity of 1000, what I'd like to know. When my application is being restarted, what will happen to those messages which are being stored in my queue. Will there be a message loss? Is it possible to handle this…
1
vote
1 answer

To call two toD in apache camel spring dsl xml

I'm going to create one rest services in rest dsl xml. On that I have created one routes. For the route I am going to call my own microservices (this is created other project) for using toD uri. Once I get response I am going to take the values from…
1
vote
0 answers

Custom `AuthenticationSuccessHandler` for spring-dsl

Is there a way to add custom AuthenticationSuccessHandler when configuring through SamlConfigurer in spring dsl. I want to add a JWT token on successful authentication. Note: I see a PR which is not merged and it is what I looking for. But is there…
Jibin TJ
  • 416
  • 1
  • 4
  • 15
1
vote
1 answer

Read file line by line using spring integration dsl

I'm trying to read file, but I need to split it line by line using Spring Integration DSL. What I need to add into my integration flows to make it works Message source @Bean public MessageSource sourceDirectory() { …
1
vote
1 answer

Transformation From One XML to Another XML Format Using JAXB in Apache Camel Route without using XSLT

I have request xml which is consumed by target system. Target system accpets XML but format is different.So I need to build marshal and unmarshal logic to get data flowing in my route to Target System. So is there any way where I can achive using…
1
vote
1 answer

Give Priority to SFTP Remote Directories

Using single SFTP channel I need to process two remote directories lowpriority and highprioiry but lowpriority files pick after the highpriority . please let know how handle multiple directories in SFTP inbound adapter with single channel ? We can…
1 2
3
9 10