Heartbeat while having a long-lasting request

2019-07-27 04:54发布

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. :)


1条回答
叼着烟拽天下
2楼-- · 2019-07-27 05:54

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.

查看更多
登录 后发表回答