-
Bug
-
Resolution: Done
-
Major
-
1.1.2.Final
In the @ThreadScope documentation (http://docs.jboss.org/weld/reference/1.1.0.Final/en-US/html_single/#d0e5455), it says you required to have the following added to beans.xml:
<beans> <decorators> <decorator>org.jboss.weld.environment.se.threading.RunnableDecorator</decorator> </decorator> </beans>
while it should be:
<beans> <decorators> <class>org.jboss.weld.environment.se.threading.RunnableDecorator</class> </decorator> </beans>
Simple error, but very confusing. Running with the wrong decorator declarations will cause the @ThreadScope not to work.