class MessageLoggingToggle implements ApplicationListener<ContextRefreshedEvent> {

    public void switchOffMessageLogging() {
        requestProcessor.disableProcessor(jmsRequestLoggerProcessor);
        responseProcessor.disableProcessor(jmsResponseProcessor);
    }

}