Jay Patel Il y a 10 années Seems very interesting! Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Manish Kumar Gupta Il y a 10 années This is really cool James. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Alexey Kakunin Il y a 10 années Hi James! really very interesting sample - only now return back to it (because need also to do some experiments with Liferay and websockets). Few questions:1. Liferay has part of API designed for about same - called poller.Do you know - are there any plans to implement Poller on top of Websocket API?2. Is Liferay (6.1.x) working with tomcat 8? I've got strange errors during starting liferay 6.1.2 (about spring listeners initialization) - just wan to clarify which version or LR and Tomcat you used for this demonstration? Did you do any special tricks to run Liferay on Tomcat 8?3. Do you know - is bug you met (thread-safe websocket) in tomcat 8 registered in their bug-tracking? Is it fixed in current version (tomcat 8-RC1)? Veuillez vous identifier pour voter. Répondre en tant que ... Annuler James Falkner Alexey Kakunin Il y a 10 années Alexey -1: Not sure, will ask!2: There were a few (very minor) changes I had to make to make it work The version I used was compiled from revision 1479152 of Tomcat's trunk. Liferay was 6.1 CE GA2, with a few modifications because of changes in Tomcat 8's JavaEE implementation. I basically tried it, it failed (with a clear error message), so i went into Liferay source code and changed what needed to be changed. I had to change some spots where Liferay would call servletContext.getRealPath(StringPool.BLANK); to be servletContext.getRealPath("/"), I guess something changed in the Java EE spec or Tomcat changed something.3: Nope, I believe it was fixed by a developer adding a bunch of 'synchronized' keywords to various methods before I had a chance to file any bug, e.g. see http://svn.apache.org/repos/asf/tomcat/trunk/java/org/apache/tomcat/websocket/WsRemoteEndpointImplBase.java Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
James Falkner Alexey Kakunin Il y a 10 années Alexey -1: Not sure, will ask!2: There were a few (very minor) changes I had to make to make it work The version I used was compiled from revision 1479152 of Tomcat's trunk. Liferay was 6.1 CE GA2, with a few modifications because of changes in Tomcat 8's JavaEE implementation. I basically tried it, it failed (with a clear error message), so i went into Liferay source code and changed what needed to be changed. I had to change some spots where Liferay would call servletContext.getRealPath(StringPool.BLANK); to be servletContext.getRealPath("/"), I guess something changed in the Java EE spec or Tomcat changed something.3: Nope, I believe it was fixed by a developer adding a bunch of 'synchronized' keywords to various methods before I had a chance to file any bug, e.g. see http://svn.apache.org/repos/asf/tomcat/trunk/java/org/apache/tomcat/websocket/WsRemoteEndpointImplBase.java Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
Yogesh Agrawal Il y a 10 années Hi James,Your article is very inspiring. I gone through liferay poller recently and found that its not very efficient. So I did a hacky thing and developed a hook to replace liferay poller with nodejs/sockjs ;)https://github.com/saggiyogesh/liferay-node-pollerLiferay is very cool.. Veuillez vous identifier pour voter. Répondre en tant que ... Annuler James Falkner Yogesh Agrawal Il y a 10 années @Yogesh - thanks, this is super cool. I've always wanted a better chat! Veuillez vous identifier pour voter. Répondre en tant que ... Annuler
James Falkner Yogesh Agrawal Il y a 10 années @Yogesh - thanks, this is super cool. I've always wanted a better chat! Veuillez vous identifier pour voter. Répondre en tant que ... Annuler