[weld-issues] [JBoss JIRA] (WELD-1148) Custom transactional observer not deferred for later invocation

Martin Kouba (JIRA) jira-events at lists.jboss.org
Tue Jun 12 04:15:06 EDT 2012

Martin Kouba created WELD-1148:

             Summary: Custom transactional observer not deferred for later invocation
                 Key: WELD-1148
                 URL: https://issues.jboss.org/browse/WELD-1148
             Project: Weld
          Issue Type: Bug
    Affects Versions: 2.0.0.Alpha2
            Reporter: Martin Kouba

Custom transactional observer added via {{AfterBeanDiscovery}} event is not registered for later invocation during the transaction completion phase but invoked immediately. Weld should call {{getTransactionPhase()}} to handle custom observer properly.

10.5. Observer notification:
For a custom implementation of the ObserverMethod interface defined in Section 11.1.3, "The ObserverMethod interface",
the container must call {{getReception()}} and {{getTransactionPhase()}} to determine if the observer method is a conditional
or transactional observer method, and {{notify()}} to invoke the method.

See TCK test:

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the weld-issues mailing list