]
Jozef Hartinger updated WELD-1148:
----------------------------------
Fix Version/s: 2.0.0.Alpha3
Assignee: Jozef Hartinger
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
Assignee: Jozef Hartinger
Fix For: 2.0.0.Alpha3
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: