From 2c3c20307add3422cad6f2d00b189e80a5b3f079 Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Sat, 27 Aug 2016 02:29:58 +0200 Subject: [PATCH] Spring STOMP simple server: a few improvements --- .../interceptors/CustomChannelInterceptor.java | 2 +- .../src/main/resources/log4j2.xml | 13 ++++++++++++- .../spring-configuration/spring-configuration.xml | 22 +++++++++++++++++++--- 3 files changed, 32 insertions(+), 5 deletions(-) diff --git a/SpringJava/STOMP/spring-stomp-server-simple/src/main/java/de/spring/stomp/interceptors/CustomChannelInterceptor.java b/SpringJava/STOMP/spring-stomp-server-simple/src/main/java/de/spring/stomp/interceptors/CustomChannelInterceptor.java index 533ab23..740787b 100644 --- a/SpringJava/STOMP/spring-stomp-server-simple/src/main/java/de/spring/stomp/interceptors/CustomChannelInterceptor.java +++ b/SpringJava/STOMP/spring-stomp-server-simple/src/main/java/de/spring/stomp/interceptors/CustomChannelInterceptor.java @@ -57,7 +57,7 @@ public class CustomChannelInterceptor extends ChannelInterceptorAdapter { byte[] payload = (byte[])message.getPayload(); String stringPayload = new String(payload); - LOGGER.info("CustomChannelInterceptor preSend, payload: " + stringPayload); + LOGGER.info("CustomChannelInterceptor postSend, payload: " + stringPayload); } diff --git a/SpringJava/STOMP/spring-stomp-server-simple/src/main/resources/log4j2.xml b/SpringJava/STOMP/spring-stomp-server-simple/src/main/resources/log4j2.xml index fe6e7db..5b83466 100644 --- a/SpringJava/STOMP/spring-stomp-server-simple/src/main/resources/log4j2.xml +++ b/SpringJava/STOMP/spring-stomp-server-simple/src/main/resources/log4j2.xml @@ -20,11 +20,22 @@ - + + + + + + + + - + + + + + + + + + + + + + @@ -73,7 +89,7 @@ Matching the value used by client. --> + scheduler="simpleBrokerScheduler" heartbeat="20000,20000" /> -- 2.1.4