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
17
votes
1 answer

Apache Camel http to http routing (Is it possible?)

I am starting now with Camel. I have seen the http4 component for http clients and the jetty component for http servers. I have seen several examples that use one or the other. I would like to know if it is possible to combine them…
kazanaki
  • 7,988
  • 8
  • 52
  • 79
17
votes
2 answers

Apache Camel vs Apache Kafka

As far as I know, Apache Kafka is asynchronous messaging platform, where as Apache Camel is a platform implementing the enterprise integration patterns. So, what are the practical differences of Apache Camel and Apache Kafka? We planned to implement…
Tuomas Toivonen
  • 21,690
  • 47
  • 129
  • 225
17
votes
2 answers

Apache Camel and Intellij Idea code format

Intellij Idea formats code in camel routs like this: from("direct:loop") .log("Loop: ${header[loopCount]}") .choice() .when(simple("header[loopCount] < 10")) .process(exchange -> { Message in = exchange.getIn(); …
well
  • 571
  • 7
  • 13
17
votes
2 answers

Distributed ActiveMQ with Camel

I am in the process of learning ActiveMQ and Camel, with the goal to create a little prototype system that works something like this: (source: paulstovell.com) (big) When an order is placed in the Orders system, a message is sent out to any…
Paul Stovell
  • 32,377
  • 16
  • 80
  • 108
16
votes
3 answers

Ordinary Queue vs SEDA Queue

Being new to Apache Camel, I was recently reviewing its long list of components and stumbled upon their support for SEDA queue components. The page didn't make much sense to me, so I did a couple of online searches for the term "SEDA queue" and got…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
16
votes
3 answers

Best strategy for processing large CSV files in Apache Camel

I'd like to develop a route that polls a directory containing CSV files, and for every file it unmarshals each row using Bindy and queues it in activemq. The problem is files can be pretty large (a million rows) so I'd prefer to queue one row at a…
Taka
  • 659
  • 2
  • 10
  • 17
16
votes
1 answer

Camel adviceWith behaves differently when changing the order of weave statements

I have the following route for demo purposes from("direct:external") .routeId("external") .to("http4://www.third-party.com/foo").id("ext"); For testing, I would like to * replace the http4: endpoint with a direct: endpoint * add a mock:…
helpermethod
  • 59,493
  • 71
  • 188
  • 276
16
votes
1 answer

Does Akka obsolesce Camel?

My understanding of Akka is that it provides a model whereby multiple, isolated threads can communicate with each other in a highly concurrent fashion. It uses the "actor model", where each thread is an "actor" with a specific job to do. You can…
smeeb
  • 27,777
  • 57
  • 250
  • 447
16
votes
5 answers

Apache Camel Endpoint injection to direct route "No consumers available on endpoint"

I want to use Camel to take a message from ActiveMQ and then, based on the message contents (a protobuf), send one or more messages to Twitter. I've written a bean that is called from within a route and which uses injection to send multiple…
Jeremy Gooch
  • 939
  • 4
  • 16
  • 28
15
votes
2 answers

Apache-camel: Enabling bridgeEndpoint on the http endpoint

I created a simple route to get contact from a remote host. But, there seems to be a lot of confusion regarding the bridgeEndpoint option. Initially, I added the route using the Java DSL as follows: from("direct:getContact") …
ndsurendra
  • 413
  • 1
  • 5
  • 15
15
votes
2 answers

What is CrashLoopBackOff status for openshift pods?

There is more than one example where I have seen this status from a pod running in openshift origin. In this case it was the quickstart for the cdi camel example. I was able to successfully build and run it locally (non - openshift) but when I try…
ZeroGraviti
  • 1,047
  • 2
  • 12
  • 28
15
votes
2 answers

Can't access Amazon SQS - InvalidClientTokenId

I have an SQS queue set up in AWS. I can send and receive messages perfectly using the AWS CLI and my IAM credentials that I set up. What I would like to do is consume messages from the queue using Camel, configured via Spring. I tried out this…
tytk
  • 2,082
  • 3
  • 27
  • 39
15
votes
2 answers

Camel - using end()

Is it a best practice to use end() for every route? The following works: from("jms:some-queue") .beanRef("bean1", "method1") .beanRef("bean2", "method2") and so is this, from("jms:some-queue") .beanRef("bean1", "method1") …
saravana_pc
  • 2,607
  • 11
  • 42
  • 66
14
votes
4 answers

Difference Between Apache Kafka and Camel (Broker vs Integration)

I am trying to understand the differences between something like Kafka and something like Camel. To my understanding Camel would provide much more abstraction for developers without having to worry about changing protocols/systems to some extent.…
Clannadqs
  • 307
  • 3
  • 12
14
votes
1 answer

Why ActiveMQ 5.14.x can't start embedded with camel-jms component 2.18.3

Here is the simple spring boot project (version 1.5.2) to demonstrate the problem: https://github.com/lanwen/camel-jms-activemq-test It has Apache Camel version 2.18.3 On branch master all works fine because of activemq-camel=5.14.4 and…
lanwen
  • 2,251
  • 1
  • 17
  • 30