camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: Transacted Apache Camel Route with CDI in AS7 ?
Date Wed, 04 Jun 2014 14:09:27 GMT
Hi,

Camel route transaction support is based on Spring transaction. 
You can enable the transaction support in camel-jms component, but I don’t think the camel
route can support transaction without using spring.

--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem



On June 2, 2014 at 9:56:45 PM, Anders Bohn Jespersen (abj@miracle.dk) wrote:
> We are running Apache Camel inside a Redhat EAP/JBoss AS7 using CDI to setup the context
 
> - from http://camel.apache.org/cdi.html.
>  
> This works fine, but since we use EJB's and MDB's as well, we need transactional routes.
 
>  
> Looking at http://camel.apache.org/transactional-client.html, this seems to require 

> Spring, which should be configured to use the JBoss JTA transaction manager.
>  
> I can get the TM from the container via JNDI, but it is not clear, how to register it
with  
> the camelContext without spring.
>  
> Nor to combine CDI-camel-context + RouteBuilder + Spring-bean-registration.
>  
>  
> Any pointers are much appreciated.
>  
>  
> Med venlig hilsen
> -----------
> Anders Bohn Jespersen
> abj@miracle.dk
> +45 5374 7251
>  
>  
>  
>  
>  
>  


Mime
View raw message