Re: Is this legit? @RequestScoped vs HttpServletRequest

2016-05-10 Thread Romain Manni-Bucau
if you do all your processing/work in the request thread yes. Romain Manni-Bucau @rmannibucau | Blog | Github | LinkedIn | Tomitriber

Re: Is this legit? @RequestScoped vs HttpServletRequest

2016-05-08 Thread Romain Manni-Bucau
If you use tomee 1 that's normal since it is a JavaEE 7 feature. TomEE 7 supports it. A filter is safe if you support asynchroron't use it. Asynchronism or banalized threads is the main issue you can encounter with a ThreadLocal. Romain Manni-Bucau @rmannibucau

Re: Is this legit? @RequestScoped vs HttpServletRequest

2016-05-08 Thread Kirys
On 08/05/2016 18:09, John D. Ament wrote: I know Romain's done some work in this area before. Per the spec, its not required to work the way you have it defined. JAX-RS injection via @Context is only mandated to work in JAX-RS managed components. Try to use @Inject instead of @Context, that

Re: Is this legit? @RequestScoped vs HttpServletRequest

2016-05-08 Thread Romain Manni-Bucau
Exactly. Recent tomee would log something like "no jaxrs call to value @Context". Le 8 mai 2016 18:10, "John D. Ament" a écrit : > I know Romain's done some work in this area before. Per the spec, its not > required to work the way you have it defined. JAX-RS injection

Re: Is this legit? @RequestScoped vs HttpServletRequest

2016-05-08 Thread John D. Ament
I know Romain's done some work in this area before. Per the spec, its not required to work the way you have it defined. JAX-RS injection via @Context is only mandated to work in JAX-RS managed components. Try to use @Inject instead of @Context, that may be what was implemented in TomEE. That