From: Gustavo Martin Morcuende Date: Sat, 27 Aug 2016 00:29:58 +0000 (+0200) Subject: Spring STOMP simple server: a few improvements X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=2c3c20307add3422cad6f2d00b189e80a5b3f079;p=JavaForFun Spring STOMP simple server: a few improvements --- 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" />