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