Primefaces push with dynamic paths is not working

戏子无情 提交于 2019-12-11 14:38:46

问题


I tried to implement the chat sample of primefaces-push, but it doesn't working.

I run some tests and i figured out that using @PushEndpoint with fixed paths e.g. /channel, it works properly, however, using path params e.g. /channel/{userId}, the socket doesn't receive any message.

I'm using:

  • Wildfly 9.0.0-Final
  • Primefaces 5.2
  • Atmosphere 2.3.3

web.xml:

<servlet>
  <servlet-name>Push Servlet</servlet-name>
  <servlet-class>org.primefaces.push.PushServlet</servlet-class>
  <load-on-startup>1</load-on-startup>
  <async-supported>true</async-supported>
</servlet>
<servlet-mapping>
  <servlet-name>Push Servlet</servlet-name>
  <url-pattern>/primepush/*</url-pattern>
</servlet-mapping>

回答1:


It works when switching to atmosphere 2.3.4



来源:https://stackoverflow.com/questions/31749009/primefaces-push-with-dynamic-paths-is-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!