心跳,同时有一个持久的要求 [英] Heartbeat while having a long-lasting request
问题描述
如何使用SEAM 2.x实现JSF 1.2,RichFaces 3.x的心跳,这也适用于用户执行的持久请求?
How can I implement a heartbeat with JSF 1.2, RichFaces 3.x using SEAM 2.x which also works during a long-lasting request executed by an user?
目前,我们有一个心跳(以避免会话超时)使用< aj4:poll action =#{bean.keepAlive}... />
在服务器上的长期请求期间不起作用。使用自己的 eventsQueue =heartbeat
允许在执行长期请求时发送所需的心跳但将我们引导到 org.jboss.seam.ConcurrentRequestTimeoutException
。
Currently, we've got a heartbeat (to avoid session timeout) using <aj4:poll action="#{bean.keepAlive}" ... />
which does not work during long-lasting requests on the server. Using an own eventsQueue="heartbeat"
allows that the required heartbeat is sent even while executing a long-term request but leads us into a org.jboss.seam.ConcurrentRequestTimeoutException
.
我们也尝试使用 @Asynchronous
on keepAlive
方法。
We also tried using @Asynchronous
on the keepAlive
method.
您是否有其他解决方案或提示我的问题?谢谢。 :)
Do you have another solution or a hint to my problem? Thank you. :)
- http://docs.jboss.org/seam/2.0.1.GA/reference/en/html/conversations.html#d0e5208
推荐答案
我们解决了运行心跳的问题在< iframe ...>
内。我实际上不是使用框架的朋友,但在这种情况下,它是一个干净,快速和肮脏的解决方案。
We have solved our problem running the heartbeat within a <iframe ...>
. I'm actually not a friend of using frames but in this situation it's a clean quick and dirty solution.
我们仍在使用< a4j:在框架内轮询...>
。
这篇关于心跳,同时有一个持久的要求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!