You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2013/02/06 09:52:00 UTC

[34/38] git commit: Disable websocket for wicket atmosphere example, it fails on many servers

Disable websocket for wicket atmosphere example, it fails on many servers


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/712bd006
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/712bd006
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/712bd006

Branch: refs/heads/reference-guide
Commit: 712bd006b0ac99a3cb8ff0e4532bdc6914046869
Parents: c24a561
Author: Emond Papegaaij <em...@topicus.nl>
Authored: Mon Feb 4 17:46:01 2013 +0100
Committer: Emond Papegaaij <em...@topicus.nl>
Committed: Tue Feb 5 08:28:43 2013 +0100

----------------------------------------------------------------------
 .../examples/atmosphere/AtmosphereApplication.java |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/712bd006/wicket-examples/src/main/java/org/apache/wicket/examples/atmosphere/AtmosphereApplication.java
----------------------------------------------------------------------
diff --git a/wicket-examples/src/main/java/org/apache/wicket/examples/atmosphere/AtmosphereApplication.java b/wicket-examples/src/main/java/org/apache/wicket/examples/atmosphere/AtmosphereApplication.java
index d175ec0..df8d32e 100644
--- a/wicket-examples/src/main/java/org/apache/wicket/examples/atmosphere/AtmosphereApplication.java
+++ b/wicket-examples/src/main/java/org/apache/wicket/examples/atmosphere/AtmosphereApplication.java
@@ -23,6 +23,8 @@ import java.util.concurrent.TimeUnit;
 
 import org.apache.wicket.Application;
 import org.apache.wicket.atmosphere.EventBus;
+import org.apache.wicket.atmosphere.config.AtmosphereLogLevel;
+import org.apache.wicket.atmosphere.config.AtmosphereTransport;
 import org.apache.wicket.protocol.http.WebApplication;
 
 /**
@@ -54,6 +56,8 @@ public class AtmosphereApplication extends WebApplication
 	{
 		super.init();
 		eventBus = new EventBus(this);
+		eventBus.getParameters().setTransport(AtmosphereTransport.STREAMING);
+		eventBus.getParameters().setLogLevel(AtmosphereLogLevel.DEBUG);
 
 		ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(1);
 		final Runnable beeper = new Runnable()