class MessageLoggingToggle implements ApplicationListener<ContextRefreshedEvent> {

    public void switchOnMessageLogging() {
        requestProcessor.enableProcessor(jmsRequestLoggerProcessor);
        responseProcessor.enableProcessor(jmsResponseProcessor);
    }

}