Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-967

@ThreadScope documentation bug

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        Activity

          People

            ajustin@redhat.com Ales Justin
            yonatangr Yonatan Graber (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: