问题
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 @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
回答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