Questions tagged [apache-camel]

Apache Camel is an open source integration framework that focuses on quick and easy integration of systems consuming or producing data.

Apache Camel is an open source integration framework that empowers you to quickly and easily integrate various systems consuming or producing data.

11646 questions
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
1 answer

MD5 as idempotentKey in Apache Camel

The default behavior is that the absolute file path is used to uniquely identify files - I would like customize this to use the md5 checksum of the file. Is it possible to simply implement a custom idempotentKey (that doesn't use the 'File…
pwwolff
  • 606
  • 1
  • 5
  • 20
2
votes
0 answers

Connection reset on web service with Apache camel

I have apache camel based integration engine deployed in apache-tomcat which uses common-http client for http call to external webservices. Most of the cases getting successful call, but rarely or the first call after server restart, I'm getting…
Praveesh
  • 21
  • 6
2
votes
0 answers

List of Maps : Camel Sql Type reference

I am using Apache Camel to execute an sql command. My results are returned back as a list of maps. Hence, I have to use something like this to type reference my results: final List> results = exchange.getIn() …
angryip
  • 2,140
  • 5
  • 33
  • 67
2
votes
1 answer

Apache Camel: switch routes based on value

I am new to Apache Camel, and trying to figure out the best way to configure switching routes based on certain values. What I do at the moment is: Retrieve the data from Kafka Then, process it in a controller, and put a certain value in a header…
Khalil Bouzekri
  • 210
  • 4
  • 12
2
votes
1 answer

Camel process receivnig hang up singal and shutsdown gracefully

i have a Camel process which pulls file from Azure container and process it in Azure environment. I expect the process to run continuously, but it shuts down after random interval. Logs: CamelHangupInterceptor: INFO (MainSupport.java:87) - Received…
Tim
  • 1,321
  • 1
  • 22
  • 47
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
0 answers

Perform a post using netty4 component in apache camel

I want to perform a post using netty4 in camel but its returning bad request 400, i have tried many permutations of http options to see if any work but the result is same (as consumer its working but as producer its not) @Component public class…
Sid
  • 81
  • 1
  • 5
2
votes
1 answer

Accessing OUT parameters with Apache Camel SQL Stored Procedure Component

I'm calling an Oracle Stored Procedure using Apache Camel's SQL Stored Procedure Component. The Stored Procedure that I'm calling has several OUT parameters which are all returned in the BODY as a String, for example: {param1=0, param2=-,…
Unai
  • 181
  • 1
  • 11
2
votes
2 answers

How can I iterate over a nested list inside Camel body?

I am trying to access data in the incoming {body} of my incoming Json I have done the unmarshaling with Jackson and mapped it to a Java Map Class with `.unmarshal().json(JsonLibrary.Jackson, java.util.Map.class) ` My incoming Json data is…
Tabber
  • 151
  • 3
  • 16
2
votes
2 answers

Subject Header in apache camel for mail showing "=?iso-2022-jp.. " for Japanese Character

I have below java code, which pick an email from inbox and write to activeMQ queue which has Japanese Text as subject. public class SimpleRouteBuilder extends RouteBuilder { @Override public void configure() throws Exception { …
NeedToLearn
  • 147
  • 1
  • 2
  • 11
2
votes
1 answer

Camel Hystrix EIP - IgnoreExceptions to prevent call to Fallback

In Apache camel Hystrix EIP, how can we prevent the call to fallback method for bad request exception. I tried throwing "HystrixBadRequestException" from my request dispatcher processor, but I still see that fallback is getting triggered. Is there…
user2857397
  • 61
  • 1
  • 1
  • 2
2
votes
0 answers

Camel REST service problem in parallel calls

I have created a REST service with Apache Camel (REST DSL) running on Karaf container that accepts a list of items and returns the availabilities of those them. The problem is that if the service is called in parallel it doesn’t return the correct…
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