Primefaces push with dynamic paths is not working

2019-09-16 13:25发布

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条回答
家丑人穷心不美
2楼-- · 2019-09-16 13:58

It works when switching to atmosphere 2.3.4

查看更多
登录 后发表回答