tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Chatellier <chatell...@codelutin.com>
Subject Re: Injection of objet created by interceptor (per request)
Date Wed, 09 May 2012 11:00:49 GMT
Le 09/05/2012 12:54, Romain Manni-Bucau a écrit :
> Hi,
>
> isn't ThreadLocal adapted?
It's working.
It was my first working solution.

But i'm wondering, if it's really safe ?

And it doesn't seems to be an elegant solution :D
>
> if you really want to use @Inject because that's fancy or because that's
> the API you want to expose you can  @Produces a proxy looking in your
> threadlocal.
I will chech @Produces... but still threadlocal :-(

Thanks.

-- 
Éric Chatellier <chatellier@codelutin.com>
Tel: 02.40.50.29.28
http://www.codelutin.com


Mime
View raw message