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
22
votes
2 answers

Apache Camel: errorHandler vs onException?

What's the difference between:
user1768830
21
votes
3 answers

Spring Transaction Synchronization of JDBC and JMS

I have a spring web app running on jboss that is currently configured to use the HibernateTransactionManager for db transactions and the JmsTransactionManager for jms. For jms we use Camel and ActiveMQ, our database is DB2. Within a transaction I…
laurie
  • 265
  • 1
  • 2
  • 9
21
votes
5 answers

Apache camel alternative in .net?

Apache Camel provided the sort of configurable architecture which allows web service messages to be determined dynamically during run time for web services that are hosted in Java environment. I was wondering whether there is a similar/equivalent…
BeraCim
  • 2,317
  • 8
  • 49
  • 78
21
votes
1 answer

Camel - Exception handling in 'sub routes'

Camel explicitly handles two 'scopes' of error handling: Global per Route The issue I'm having is exceptions thrown in a 'sub route'. For instance, I've got this route: from("direct:sendToWebservice"). .processRef("massageBeforeSending"). …
Roy Truelove
  • 22,016
  • 18
  • 111
  • 153
21
votes
1 answer

unit testing functions with Apache Camel Exchange as parameter

I am doing java camel development and I want to unit test(junit4) a bunch of functions with Exchange being passed in as parameter. For example : public finalObject getProperty(final Exchange exchange, final String property) throws Exception { …
RoundPi
  • 5,819
  • 7
  • 49
  • 75
21
votes
2 answers

Camel send to multiple end points

How does these two differ from(endpoint).to(endpoint:a, endpoint:b) from(endpoint).multicast().to(endpoint:a, endpoint:b) couldn't find any documentation for the first
Manoj
  • 5,542
  • 9
  • 54
  • 80
20
votes
2 answers

Apache Camel: how store variable for later use

while 'playing around' with Camel using Spring DSL, I came across the following problem. Suppose the expected message flow looks like this: client sends HTTP POST message with XML body to CAMEL CAMEL proxies HTTP POST message towards server, with…
opstalj
  • 892
  • 4
  • 13
  • 22
20
votes
5 answers

How can Apache Camel be used to monitor file changes?

I would like to monitor all of the files in a given directory for changes, ie an updated timestamp. This use case seems natural for Camel using the file component, but I can't seem to find a way to configure this behavior. A uri…
Janx
  • 3,285
  • 3
  • 19
  • 24
20
votes
2 answers

Apache Camel Spring configuration error - Unable to locate Spring NamespaceHandler for XML schema namespace [http://camel.apache.org/schema/spring]

I've posted an excerpt from my spring.xml file and the stack trace I'm getting.
ScArcher2
  • 85,501
  • 44
  • 121
  • 160
19
votes
1 answer

Testing Camel with MockEndpoints

I've got a series of "pipelined" components that all communicate through ActiveMQ message queues. Each component uses Camel to treat each of these queues as an Endpoint. Each component uses the same basic pattern: Where each component consumes…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
19
votes
2 answers

Camel Routes and Endpoints

I've been poring over the Apache Camel docs trying to get a concrete understanding of two of its most basic concepts (endpoints and routes), and although these terms are used everywhere throughout the docs, I can find no reference that actually…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
19
votes
7 answers

Apache Camel - Triggering a task on startup to run only once

I am working on a Java project using Camel & Spring. We would like to trigger an initialize method on a singleton bean after Spring finished doing its thing and Camel has finished building all routes. We cant call the method at class creation time…
NightWolf
  • 7,694
  • 9
  • 74
  • 121
18
votes
2 answers

How to define exception to be thrown through ref in Apache Camel

Have to throw an exception in my camel route defined in XML. Found throwException statement available from Camel 2.3 which looks like: However, I don't know how to define forced exception class to be…
Archer
  • 5,073
  • 8
  • 50
  • 96
18
votes
1 answer

Cluster-wide singleton in Websphere Cluster

I need to run a component using Apache Camel (or Spring Integration) under WAS ND 8.0 cluster. They both run some threads on startup, and stop them on shutdown normally. No problem to supply WAS managed threadpool. But that threads must run on…
18
votes
5 answers

Wrangling up XMPP

Wikipedia defines XMPP as: ...an open-standard communications protocol for message-oriented middleware based on XML. xmpp.org defines XMPP as: The Extensible Messaging and Presence Protocol (XMPP) is an open XML technology for real-time…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756