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
8
votes
4 answers

Load spring beans from custom groovy files in grails app

Trying to load spring beans from custom groovy file in Grails 2.3.7. I know this question has been asked before, but after hours of searching, I'm unable to find a consistent approach that loads from the classpath. The Goal Modularize…
raffian
  • 31,267
  • 26
  • 103
  • 174
5
votes
1 answer

Is there a component for logging messages with Spring Integration using Java DSL?

I'm using Spring Integration to develop my integration scenarios. When I have to write some logs to provide some information, I write this way: @Bean IntegrationFlow blacklist(BlacklistService service) { return m -> m .wireTap(f ->…
Higor Oliveira
  • 129
  • 2
  • 8
5
votes
1 answer

Spring Integration Java DSL - How to call a ServiceActivator method with retry advice

I have a Component class with a ServiceActivator method: @Component("payloadService") public class PayloadService { @Transactional @ServiceActivator @Description("Pre-check service") public Message preCheck(Message
Going Bananas
  • 2,265
  • 3
  • 43
  • 83
4
votes
1 answer

Camel+marklogic without using Marklogic Content Pump

I am trying out to pick up a JSON file from filesystem and am trying to insert the file to MarkLogic database.
Vikram
  • 635
  • 1
  • 9
  • 29
4
votes
1 answer

pipeline Source for DSL

I'm starting to work on pipelines for jenkins (formerly workflow) I'm using IntelliJ for an IDE Is there a source of Documentation for GDSL or some way I can know what groovy is acceptable in the pipeline and what is not? Also is there a way that…
jvanryn
  • 294
  • 1
  • 3
  • 11
4
votes
1 answer

ErrorHandling in Spring Integration with Java Dsl

I'm wonderring what is the correct way to use serviceActivators in SI Java Dsl to handle errors. I have such Spring Integration xml config:
Bujaka
  • 85
  • 1
  • 3
  • 11
4
votes
2 answers

apache camel spring dsl check if body contains string

I am trying to check : ${body} contains 'verification' Body is the json: {"verification": {"email": "bb@wp.pl", "code": "1234"}} But this condition doesn't work. I've tried as well: ${body} contains…
Sergii Getman
  • 3,845
  • 5
  • 34
  • 50
4
votes
1 answer

Spring Integration DSL ErrorHandling

As the title says, I'm looking for a good example on errorHandling within a DSL flow. Specifically, I'm looking to handle errors from a service activator. Example: IntegrationFlows.from(Amqp.inboundAdapter(simpleMessageListenerContainer())) …
James Gilchrist
  • 2,242
  • 3
  • 20
  • 35
3
votes
1 answer

How to change a property value inside a Apache Camel Route?

In a property file a variable test has been defined: test=OLD_VALUE In the following Spring-DSL definition a camel route is defined. Properties are loaded via PropertiesComponent.
E.Ambrosi
  • 31
  • 1
  • 4
3
votes
1 answer

Log Request, Response and Total Time taken by the flow using Java DSL

I am trying to build a flow that starts with a Http.inboundGateway -> Does Several Things like Store the request data to a Database, Does Header Enrichment, Send to AMQP and returns with a Status of the flow (Successful / Failed). I have a few…
Rajeev K
  • 109
  • 2
  • 8
3
votes
2 answers

Example Spring integration DSL for JPA Inbound Channel adapter

I can't find a useful example for polling a JPA source for inbound data. I know how to do this in XML but can't figure out how do it in DSL. In short what I want to do is periodically poll a JPA repository for records then put the records into a…
user1232555
  • 1,099
  • 3
  • 11
  • 18
3
votes
1 answer

How to configure StepExecutionListener with Spring Integration DSL

I am trying to configure a Spring Batch listener to send a message to a Spring Integration Gateway for StepExecution events. The following link explains how to configure this with…
Menno
  • 97
  • 1
  • 7
3
votes
2 answers

Separate route instances within single Camel context

I use Apache Camel module deployed inside ActiveMQ service. Given I use Spring DSL and I have route definition ( implemented as routeContext) in the FilteringRouteContext.xml file (simplified):
sgnsajgon
  • 664
  • 2
  • 13
  • 56
2
votes
2 answers

Access to a method of an abstract class in Camel Context version (2.9.1) with Spring DSL

Within a route defined in camel context I would like to access a method of an abstract class that is contained in a 3rd party library I am using.
2
votes
1 answer

Spring DSL in Grails - resources.groovy - bean configuration in a different file?

This question already exists in a way, but the existing question is missing some important links. I'm trying to move the configuration of beans for my tests into separate files that end in *TestsSpringBeans.groovy I've attempted to do this after…
leeand00
  • 25,510
  • 39
  • 140
  • 297
1
2 3
9 10