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…
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…
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
…
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)
…
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
…
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?
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…
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…
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…
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")
…
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…
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…
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…