Heartbeat while having a long-lasting request

橙三吉。 提交于 2019-12-24 06:45:09

问题


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?

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.

We also tried using @Asynchronouson 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

回答1:


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.

We're still using <a4j:poll ...> within the frame.



来源:https://stackoverflow.com/questions/14647608/heartbeat-while-having-a-long-lasting-request

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