[weld-dev] CDI + RequestScoped + thread safety

Daniel Pub dca.pub at gmail.com
Sun May 4 00:30:55 EDT 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/weld-dev/attachments/20140504/e25c80c1/attachment.html 


More information about the weld-dev mailing list