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.
{quote}
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.
{quote}
See TCK test:
{{org.jboss.cdi.tck.tests.event.observer.transactional.custom.CustomTransactionalObserverTest}}
--
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