CDI + RequestScoped + thread safety
by Daniel Pub
Hi all,
I've been developing some code with CDI.
I was wondering what happens when I mark a servlet property with @Inject
and define the bean with @RequestScoped but the bean class itself is not
thread safe but it's a property of my servlet so looking by the servlet
perspective it could be accessed by multiple threads.
Do we have something that makes these properties accessible to just one
request / thread even tough they are servlet's class properties?
Thanks,
Daniel
10 years, 6 months