From 25bc9089614c959f5bb97fce174407eef537044b Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Mon, 31 Mar 2014 17:24:43 +0300 Subject: Use UUIDBroadcasterCache (#13514) Change-Id: I63c2d5886507281a9dfe219dea46dc5067ffa4e3 --- server/src/com/vaadin/server/communication/PushRequestHandler.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server/src/com') diff --git a/server/src/com/vaadin/server/communication/PushRequestHandler.java b/server/src/com/vaadin/server/communication/PushRequestHandler.java index c078b328d1..7ac4c0e406 100644 --- a/server/src/com/vaadin/server/communication/PushRequestHandler.java +++ b/server/src/com/vaadin/server/communication/PushRequestHandler.java @@ -21,6 +21,7 @@ import java.io.IOException; import javax.servlet.ServletConfig; import javax.servlet.ServletException; +import org.atmosphere.cache.UUIDBroadcasterCache; import org.atmosphere.client.TrackMessageSizeInterceptor; import org.atmosphere.cpr.ApplicationConfig; import org.atmosphere.cpr.AtmosphereFramework; @@ -86,6 +87,8 @@ public class PushRequestHandler implements RequestHandler, pushHandler = new PushHandler(service); atmosphere.addAtmosphereHandler("/*", pushHandler.handler); + atmosphere.addInitParameter(ApplicationConfig.BROADCASTER_CACHE, + UUIDBroadcasterCache.class.getName()); atmosphere.addInitParameter(ApplicationConfig.PROPERTY_SESSION_SUPPORT, "true"); atmosphere.addInitParameter(ApplicationConfig.MESSAGE_DELIMITER, -- cgit v1.2.3