();
+ @Override
+ public void init(ServletConfig config) throws ServletException {
+ JdkOverLog4j.install();
+ super.init(config);
+ }
+
@Override
protected SocketIOInbound doSocketIOConnect(HttpServletRequest request) {
+ if (LOGGER.isLoggable(Level.FINE))
+ LOGGER.fine("doSocketIOConnect : " + request.getRemoteHost() + ":" + request.getRemotePort());
return new Endpoint(request.getSession().getId(), request.getRemoteHost(), request.getRemotePort());
}
diff --git a/samples/eventbus/src/main/resources/log4j.xml b/samples/eventbus/src/main/resources/log4j.xml
new file mode 100644
index 0000000..d6530cf
--- /dev/null
+++ b/samples/eventbus/src/main/resources/log4j.xml
@@ -0,0 +1,83 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/samples/eventbus/src/main/webapp/WEB-INF/web.xml b/samples/eventbus/src/main/webapp/WEB-INF/web.xml
index 4685661..583648b 100644
--- a/samples/eventbus/src/main/webapp/WEB-INF/web.xml
+++ b/samples/eventbus/src/main/webapp/WEB-INF/web.xml
@@ -4,6 +4,8 @@
The MIT License
Copyright (c) 2010 Tad Glines
+ Contributors: Ovea.com, Mycila.com
+
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
diff --git a/samples/eventbus/src/main/webapp/index.html b/samples/eventbus/src/main/webapp/index.html
index 0561a98..f762407 100644
--- a/samples/eventbus/src/main/webapp/index.html
+++ b/samples/eventbus/src/main/webapp/index.html
@@ -3,6 +3,8 @@
The MIT License
Copyright (c) 2010 Tad Glines
+ Contributors: Ovea.com, Mycila.com
+
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
@@ -31,103 +33,179 @@
+
+
+
+
+Topic:
+Message:
+
In the Firebug console, you can execute:
TESTER.start();
TESTER.subscribe('myTopic');
TESTER.publish('myTopic', 'myMessage');
TESTER.stop();
+
diff --git a/samples/eventbus/src/test/java/StartSampleEventBus.java b/samples/eventbus/src/test/java/StartSampleEventBus.java
index a23b91d..4c21d78 100644
--- a/samples/eventbus/src/test/java/StartSampleEventBus.java
+++ b/samples/eventbus/src/test/java/StartSampleEventBus.java
@@ -2,6 +2,8 @@
* The MIT License
* Copyright (c) 2010 Tad Glines
*
+ * Contributors: Ovea.com, Mycila.com
+ *
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
diff --git a/samples/pom.xml b/samples/pom.xml
index b032f47..e4b3a4b 100644
--- a/samples/pom.xml
+++ b/samples/pom.xml
@@ -7,7 +7,7 @@
com.glines.socketio
socketio
- 0.1-SNAPSHOT
+ 0.2.1
..
@@ -26,4 +26,33 @@
chat-gwt
+
+
+
+ jetty
+
+ true
+
+
+
+ org.testatoo.container
+ testatoo-container-jetty
+ test
+
+
+
+
+
+ tomcat
+
+
+ org.testatoo.container
+ testatoo-container-tomcat
+ test
+
+
+
+
+
+