package com.acme;
@Stateless
@Local
@EventContextual // just in case method annotation does not work
public class ButtonPressedEventHandler implements Serializable {
@EventContextual
public void handle(
@Observes
Message event) {
// handle event
}
}
I dispatch event using standard Event<Message> injected facility and never get "hello from interceptor" message in the output ("handle" method of bean was called though)
What I'm doing wrong?
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira