Questions tagged [spring-camel]

Spring wrapper over Apache Camel

more details here

586 questions
2
votes
1 answer

apache camel - seda endpoint multicast

from("seda:start) .multicast(new GroupedBodyAggregationStrategy()) .parallelProcessing() .to("seda:process1", "seda:process2") .end() .to("seda:join"); The plan is for process1 and process2 to run in parallel and for its output…
lorraine batol
  • 6,001
  • 16
  • 55
  • 114
2
votes
2 answers

Camel binding mode for JSON not working, cant unmarshal it to POJO

I'm trying to send message from rest API to new route, and even thou I receive request in JSON format on my REST API and binding is set to JSON, when I forward it to new route it will be shown as InputStream and I will have to marshal it to JSON in…
nenad92
  • 21
  • 2
2
votes
1 answer

Need clarity on Camel Timer component timely processing

In Apache Camel, I have configured the timer component to fire the job for every 15 mins. Suppose if any job which is taken more than 15 mins due to data load to complete it task, will it be affected by the next job since we have configured to run…
Pearl
  • 384
  • 1
  • 8
  • 15
2
votes
1 answer

Camel url listener

I want to make a route that will be triggered from client request. For example I have a route http://localhost:8080/get where I have some json object. I want to create a route when I send a request to http://localhost:8080/get to send the data to…
xmlParser
  • 1,903
  • 4
  • 19
  • 48
2
votes
1 answer

How to get headers from one route to another route - Camel JavaDsl

I have camel rest endpoint with two params and when I send request it activates first route ("direct:amq"), where I get message from activeMq. The headers here are okay, but this route activates another route ("direct:post)" and the headers there…
xmlParser
  • 1,903
  • 4
  • 19
  • 48
2
votes
3 answers

Spring Boot Camel Route - get data from rest endpoint

I want to create camel route in Spring Boot (2.1.1) project to get the data from some (rest) endpoint (http://localhost:8080/getAllUsers) and to send that data to activeMq. I have tried with timer data to send it on activeMq and to consume it and it…
xmlParser
  • 1,903
  • 4
  • 19
  • 48
2
votes
0 answers

PooledConnectionFactory - The session has already been closed

I face an exception and see the following getting logged when using the org.apache.activemq.pool.PooledConnectionFactory for producing messages to an AMQ Queue - Caused by: java.lang.IllegalStateException: The session has already been closed at…
2
votes
0 answers

Apache Camel, converting string to integer in @DataField bindy

I'm working with Apache Camel Bindy, the version of Camel is 2.18.1. I have a text file, from where I'm reading the content. I read line by line and convert values using this class: @FixedLengthRecord(length = 60, ignoreTrailingChars = true) public…
Jack1987
  • 727
  • 1
  • 14
  • 26
2
votes
1 answer

JMSComponent>transacted=true and transacted() in camel builder

How transacted() in camel DSL is related to transacted="true" of JMSComponent. Will that make any sense, if transacted property of JMSComponent is set to "true" along with transacted() in camel DSL ?
Raju Parashar
  • 312
  • 4
  • 17
2
votes
1 answer

Camel: How to split and then aggregate when number of item is less than batch size

I have a Camel route that reads a file from S3 and the processes the input file as follows: Parse each row into a POJO (Student) using Bindy Split the output by body() Aggregate by an attribute of the the body (.semester) and a batch size of…
Lex Luthor
  • 523
  • 6
  • 18
2
votes
1 answer

incompatible version of apache.camel with Spring.Boot v2.0

Anyone could englighten me which org.apache.camel version I should use with the Spring boot version 2.0.0 .RELEASE. When I used newer versions of apache.camel such like 2.21.0 , I come across with RelaxedPropertyResolved error. I read the forums and…
Tonyukuk
  • 5,745
  • 7
  • 35
  • 63
2
votes
1 answer

How to add signature for file using camel

I need to add signature to a file using apache camel. when i checked in camel documentation, found crypto:sign component where it creates the signature and stores it in the Header keyed by the constant…
rocky
  • 753
  • 2
  • 10
  • 26
2
votes
1 answer

CamelContext must be specified on: HttpMessage@0x36ed8347

I am using camelServlet, camel kafka in a spring boot app, I am getting this error which I am not able to understand when I try to call a get endpoint which is configured as REST DSL route I am getting the below error…
2
votes
1 answer

How to validate the JSON Request in camel rest

I need to validate incoming request to the camel rest service based on some schema. for example. In request as given below { "routeId" : "fileBatchRoute", "action" : "start", "sourceLocation" : "sourceDirectory", "destinationLocation" :…
rocky
  • 753
  • 2
  • 10
  • 26
2
votes
0 answers

camel: Unable to locate Spring NamespaceHandler for XML schema namespace [http://camel.apache.org/schema/spring]

I am developing a spring-camel application. My beans.xml looks like below.
Hari Krishna
  • 3,658
  • 1
  • 36
  • 57