Can you store the variable as an exchange property?
Then you will not be bothered by reading it from different thread.

Tue Jul 17 03:12:40 2012, Romain Manni-Bucau wrote:
Hi,

updated https://github.com/rmannibucau/camel-cdi-extension to create an
ExchangeScoped but that's a bit hard to really get it on the camel side,

any help?

the main issue to make it working in async mode, currently i use a
threadlocal but that's far to be perfect.

- Romain




--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
        http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang

Reply via email to