On May 9, 2012, at 3:52 AM, Eric Chatellier wrote:
> Hi,
>
> I'm currently using openejb 4.0 as embedded ejb container.
>
> I'm also trying to find a proper way to create object
> in interceptor and getting access to them in EJB.
>
> Is there any way to:
> - create an object (in this case a tra
Why isn't it elegant? If you don't use async mecanism and/or start new
thread that's common. Moreover
in the interceptor you can clean the thread local (in a finally) so no
memory leak.
That's the way commonly used for security if i'm not mistaken.
- Romain
2012/5/9 Eric Chatellier
> Le 09/05
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 t
Hi,
isn't ThreadLocal adapted?
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.
- Romain
2012/5/9 Eric Chatellier
> Hi,
>
> I'm currently using openejb 4.0 as embedded ejb container.
>
Hi,
I'm currently using openejb 4.0 as embedded ejb container.
I'm also trying to find a proper way to create object
in interceptor and getting access to them in EJB.
Is there any way to:
- create an object (in this case a transaction to a custum persistence
framefork)
- put it somewhere
- inje