Hi all,

I like to register a new MessageHandler in CODI but it gets never called.

On the wiki page (1) I found a description how this could be done.  I placed
the line of code within a method that observes for StartupEvent like this

    @Inject
    private MessageContext context;

    public void configureErrorMessageListener(@Observes StartupEvent
startupEvent) {
        context.config().change().addMessageHandler(new
ErrorMessageHandler());
    }

But the messageContext injected in the CDI Request bean does contain only
the standard JSF aware message handler.
Adding the @Jsf Qualifier is also not changing anything. (This i can
understand because the method producer created a new config, and is not
using the original one)

My version is 0.9.4-SNAPSHOT

Thx
Rudy

(1) https://cwiki.apache.org/confluence/display/EXTCDI/Message+DevDoc

Reply via email to