-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
None
From a plain SLSB, I am firing a certain type of CDI event. In an ApplicationScoped bean, I am observing these type of events in different transaction phases such as TransactionPhase.IN_PROGRESS and TransactionPhase.AFTER_SUCCESS. A RequestScoped bean is injected into the bean implementing the observer methods.
If I now make a remote EJB call to the SLSB, I am getting different instances of the RequestScoped bean during the same request (same thread, same transaction) at the different transaction phases.
The WELD reference however says:
The request and application scopes are also active:
during invocations of EJB remote methods,
[...]
So I'd expect to get the same instance of a RequestScoped bean during this request at any transaction phase.
I've posted a question to the forum: https://developer.jboss.org/thread/267637
In TomEE this scenario behaves as expected.