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

Commit

Permalink
Merge pull request #1374 from digitaldan/rest-memory-issues2
Browse files Browse the repository at this point in the history
Rest memory issues to address #765
  • Loading branch information
teichsta committed Aug 29, 2014
2 parents 741f115 + 154a006 commit 9435ad4
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions bundles/io/org.openhab.io.rest.lib/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ Bundle-ClassPath: lib/jackson-core-asl-1.9.2.jar,
lib/atmosphere-compat-jbossweb-2.0.1.jar,
lib/atmosphere-compat-tomcat-2.0.1.jar,
lib/atmosphere-compat-tomcat7-2.0.1.jar,
lib/atmosphere-annotations-2.0.7.jar,
lib/atmosphere-jersey-2.0.7.jar,
lib/atmosphere-runtime-2.0.7.jar
lib/atmosphere-annotations-2.0.9.jar,
lib/atmosphere-jersey-2.0.9.jar,
lib/atmosphere-runtime-2.0.9.jar
Import-Package: com.sun.jersey.api.core,
com.sun.jersey.api.json,
com.sun.jersey.core.osgi,
Expand Down
6 changes: 3 additions & 3 deletions bundles/io/org.openhab.io.rest.lib/build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ bin.includes = META-INF/,\
lib/atmosphere-compat-jbossweb-2.0.1.jar,\
lib/atmosphere-compat-tomcat-2.0.1.jar,\
lib/atmosphere-compat-tomcat7-2.0.1.jar,\
lib/atmosphere-annotations-2.0.7.jar,\
lib/atmosphere-jersey-2.0.7.jar,\
lib/atmosphere-runtime-2.0.7.jar
lib/atmosphere-annotations-2.0.9.jar,\
lib/atmosphere-jersey-2.0.9.jar,\
lib/atmosphere-runtime-2.0.9.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 9435ad4

Please sign in to comment.