EJBObserverMethodRemoteBusinessMethod links to CDI spec 24.1 regarding observers on EJB. Which says:
An observer method may also be a non-abstract method of an EJB session bean class. It must be either a business method exposed by a local business interface of the EJB or a static method of the bean class.
This clearly disallows methods on remote interfaces to be observer methods - no conditions are stated. The test simply follows that.
The intention of the original CDI clarification was to make clear that CDI events are not...
That is not what the original issue says, please read up on issues/mail which lead up to this, including: https://issues.jboss.org/browse/CDI-545 https://issues.jboss.org/browse/CDITCK-497 and finally a mail conversation linked in the aforementioned CDI issue - http://lists.jboss.org/pipermail/cdi-dev/2015-July/006993.html Summing up, remote business methods were never intended to be observer methods, that's what the clarification was about. |