Questions tagged [spring-camel]

Spring wrapper over Apache Camel

more details here

586 questions
1
vote
0 answers

How to call a Kotlin top-level function as Apache Camel expression

I am using Apache Camel in my Spring/Kotlin application. Camel let's you call a method on a bean; for example: .transform(body().method("MyBean", "myMethod")) How can I call a Kotlin top-level function or extension function instead, where there is…
Ulrich Schuster
  • 1,670
  • 15
  • 24
1
vote
0 answers

Camel @EndpointInject for mock route in Testing is not starting and recieving any messages

I have an Spring Boot Application with Multiple Camel Routes and I am in the process of testing these routes individually and also some of these routes contains components that are not accessible locally. So I need to mock these Endpoints so they…
1
vote
1 answer

@Value annotation unable to read properties file in spring boot camel application

I have a spring-boot application where I read data from queue and send data to transformation class using .bean() Integration.java class Integration { @Value("${someURL}") private String someURL; //able to read someURL from property file …
1
vote
0 answers

Apache Camel addRoute Method take a lots of time to add the route

I am building an apache camel application. I am pushing the routes through api like so RouteBuilder routeBuilder = new RouteBuilder () { @Override public void configure() throws Exception { from ("file-watch://" + path) …
Amit Mishra
  • 498
  • 5
  • 16
1
vote
1 answer

how to do a junit test for the test case "body null" or "body Empty String"

This is a Hashing processor where I want to hash a FileInputStream using the SHA-1 algorithm and then add the hash to the exchange header under "HashValue" @Component public class FileContentHashExpression implements Expression { @Override …
1
vote
1 answer

handled tag in spring-camel 3.0 xml is deprecated

Facing an issue while migrating from 2.x version to 3.16.0. What is the alternative for true in camel-spring 3.x versions. What is the alternative for handled and continue in higher versions?
Suresh Kumar
  • 90
  • 1
  • 9
1
vote
1 answer

Need to end Apache camel split while processing

My intention is to send a list of messages one by one (messages are generate using values from db). What I do is query and get the message list attach it to the exchange and use split to slipt the messages and it sends Below is my…
1
vote
2 answers

Apache Camel with Kafka Schema registry

I am building a Camel application to read message from Confluent Kafka. The messages are in Avro format and added below route configuration to read the Avro messages using schema registry in Camel route. When I enable the…
1
vote
1 answer

How to escape regex in Java methods call in simple language in Apache's Camel Spring DSL (XML) route?

I have a setHeader tag in my route: ${header.timestampPart2.split("\\.")[0]} I expect, it will split the String inside the timestampPart2…
Eljah
  • 4,188
  • 4
  • 41
  • 85
1
vote
1 answer

Can I split a message to different messages and sent to kafka using Camel Kafka Connector

I am trying to read a file and sent the data to kafka using Camel kafka connectors Its working but I need to split the file to multiple messages and sent them individually to Kafka Is it possible to split the data and sent individually to kafka…
Abhi
  • 101
  • 6
1
vote
0 answers

How to refer external jar route from Camel context file

I have project A which has below simple route logrouteTest.xml
Chennai Cheetah
  • 355
  • 1
  • 11
1
vote
0 answers

org.apache.camel.ValidationException: Allowed body types are String or InputStream

I'm getting type compatibility issue while using EL to parse the request body in JSON. Can some one help me on this ? from("file-watch:test?events=CREATE&useFileHashing=true&antInclude=**/*.csv&recursive=true") .routeId("fileWatch") …
TechGeek
  • 480
  • 1
  • 8
  • 22
1
vote
1 answer

Unit testing camel routes using camel test support

I would like to right unit and integration test cases to test all the functional flow. Can someone share your thoughts on how I can create a mock endpoint to watch directory for file creation and further process them via multiple routes and move the…
1
vote
1 answer

Authentication issue while connecting to Azure Blob using Camel

My goal is to monitor the hello directory for any new file creation. Once new file created it should trigger API and upload the file which got created inside the hello directory into azure. I'm getting below exception. Can someone help me on this…
TechGeek
  • 480
  • 1
  • 8
  • 22
1
vote
1 answer

Issue with multiple threads in Apache Camel

I'm trying to realize a stress test in a Camel project that receives a key to decrypt some query parameters. However, when I add multiple vusers, the sequence of threads seems to lose the order. Screenshot: The thread 7 enter in the middle of the…