@ExchangedScoped

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

@ExchangedScoped

Romain Manni-Bucau
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
Reply | Threaded
Open this post in threaded view
|

Re: @ExchangedScoped

Willem.Jiang
Administrator
 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 | Threaded
Open this post in threaded view
|

Re: @ExchangedScoped

Charles Moulliard
In reply to this post by Romain Manni-Bucau
Hi Romain,

Why have you created a ExchangeScoped and what would you like to do with
this CDI extension ?
I will be in vacation for the 2 next weeks but in august I will update the
Lukasz ticket created (https://issues.apache.org/jira/browse/CAMEL-5422) to
describe what we really need for CDI, CDI extension to allow Camel to
operate correctly within CDI container without breaking what we have now in
Camel (ScanClassResolver, Camel Annotations, Policy, RoutePolicy, ....)

Regards,

Charles Moulliard

Apache Committer

Blog : http://cmoulliard.blogspot.com
Twitter : http://twitter.com/cmoulliard
Linkedin : http://www.linkedin.com/in/charlesmoulliard
Skype: cmoulliard


On Mon, Jul 16, 2012 at 9:12 PM, Romain Manni-Bucau
<[hidden email]>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
>
Apache Committer / Sr. Pr. Consultant at FuseSource.com
Email: [hidden email]
Twitter : @cmoulliard, @fusenews
Blog : http://cmoulliard.blogspot.com