具有动态路径的Primefaces推送不起作用 [英] Primefaces push with dynamic paths is not working

查看:87
本文介绍了具有动态路径的Primefaces推送不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图实现primefaces-push的聊天示例,但是它不起作用.

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

我进行了一些测试,发现使用@PushEndpoint并使用了固定路径,例如/channel ,但是使用路径参数(例如, /channel/{userId} ,套接字没有收到任何消息.

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.

我正在使用:

  • Wildfly 9.0.0-Final
  • Primefaces 5.2
  • 大气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>

推荐答案

切换到大气层2.3.4时有效

It works when switching to atmosphere 2.3.4

这篇关于具有动态路径的Primefaces推送不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆