Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Commit

Permalink
Using setBroadcasterCache does not seem to trigger the correct life c…
Browse files Browse the repository at this point in the history
…ycle management that internal BroadcastCache classes require
  • Loading branch information
digitaldaniel committed Aug 28, 2014
1 parent 54073e0 commit 154a006
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ private Dictionary<String, String> getJerseyServletParams() {
jerseyServletParams.put("org.atmosphere.cpr.AtmosphereInterceptor", "org.atmosphere.interceptor.DefaultHeadersInterceptor,org.atmosphere.interceptor.AndroidAtmosphereInterceptor,org.atmosphere.interceptor.SSEAtmosphereInterceptor,org.atmosphere.interceptor.JSONPAtmosphereInterceptor,org.atmosphere.interceptor.JavaScriptProtocol,org.atmosphere.interceptor.OnDisconnectInterceptor");
// The BroadcasterCache is set in ResourceStateChangeListener.registerItems(), because otherwise
// it gets somehow overridden by other registered servlets (e.g. the CV-bundle)
// jerseyServletParams.put("org.atmosphere.cpr.broadcasterCacheClass", "org.atmosphere.cache.UUIDBroadcasterCache");
jerseyServletParams.put("org.atmosphere.cpr.broadcasterCacheClass", "org.atmosphere.cache.UUIDBroadcasterCache");
jerseyServletParams.put("org.atmosphere.cpr.broadcasterLifeCyclePolicy", "IDLE_DESTROY");
jerseyServletParams.put("org.atmosphere.cpr.CometSupport.maxInactiveActivity", "3000000");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public static ConcurrentMap<String, Object> getMap() {
}

public void registerItems(){
broadcaster.getBroadcasterConfig().setBroadcasterCache(new UUIDBroadcasterCache());
//broadcaster.getBroadcasterConfig().setBroadcasterCache(new UUIDBroadcasterCache());

broadcaster.getBroadcasterConfig().addFilter(new PerRequestBroadcastFilter() {

Expand Down

0 comments on commit 154a006

Please sign in to comment.