Re: Injection of objet created by interceptor (per request)

2012-05-09 Thread Eric Chatellier
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

Injection of objet created by interceptor (per request)

2012-05-09 Thread Eric Chatellier
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