Re: Using threadlocals on async requests

2021-03-10 Thread Thiago Veronezi
Yes. I noticed that. :) I was only testing with the ByteCounter example that comes with tomcat.That example uses nio, so there's no new thread. As soon as I use... ``` val ac = req.startAsync(); ac.start(() -> { // }); ``` The runnable does not get the threadlocal, obviously. :) Thanks for th

Re: Using threadlocals on async requests

2021-03-09 Thread Christopher Schultz
Thiago, On 3/9/21 08:17, Thiago Veronezi wrote: I have a java agent that has its own transaction feature and it does it by using Threadlocals. The agent transactions feature seems to work ok with Tomcat async requests. Does anyone know it's fine to use threadlocals on async requests? It's def

Using threadlocals on async requests

2021-03-09 Thread Thiago Veronezi
Hi community, I have a java agent that has its own transaction feature and it does it by using Threadlocals. The agent transactions feature seems to work ok with Tomcat async requests. Does anyone know it's fine to use threadlocals on async requests? Thanks! Thiago.