camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Non-Spring Transaction Manager
Date Mon, 23 Mar 2009 18:25:32 GMT
On Mon, Mar 23, 2009 at 5:06 PM, Colin Ruthven <> wrote:
> Is it possible to use transactions in Camel messaging (eg JMS) without
> Spring intruding? Camel may use Spring underneath the covers but I don't
> want to use it inside my application.
> Or at least only use Camel API's to do this or be able to plug other
> solutions in.

camel-jms uses spring-jms under the covers. And the TX support we have
in Camel relies on Spring TX as well.

But you can disable the error handler completely in Camel and let
whatever external system you use handle the TX.

In java DSL:

In Spring DSL its something like this (I sit with laptop in hand and
dont have code editor open)
<bean id="myNoErrorHandler"

<camel errorHandlerRef="myNoErrorHandler" ...>


> The documentation seems to go both ways, suggesting that Spring is the
> "default" but in other places it looks like that's the only approach
> available.
Usually Spring TX is very flexible, so you can wire it up to integrate
with your external system for the TX management.

What kind of other framework/system do you want to handle the TX?

> Any comments appreciated.
> Thanks,
> Colin

Claus Ibsen
Apache Camel Committer

Open Source Integration:

View raw message