We are moving parts of our application over to ICEFaces. Once of the things that we are using is the push capability of this package to push updates out to web browser clients. While there are many trivial examples such as a chat example, etc. I can find nothing that shows how to get external events into the web tier and push those out.
In my case, I have devices that are being monitored by a JCA connector. Status updates can come in asynchronously or via a poll. State changes are persisted using JPA entities. What I need to do now is to get these state changes up into the web tier and push them to the web browser clients.
My thought is to use JMS and have a JMS topic consumer in the web tier. The consumer would receive JMS messages and update some shared context information and then use the ICEFaces on demand rendering capability to push the changes to the web browser clients.
I am struggling trying to decide what type of web tier component to use to host the JMS topic consumer. Currently I am using a Servlet Context Listener that implements the MessageListener interface but that seems to stop working after one or two messages. In some research, I saw some indication that the web tier components cannot use this asynchronous mechanism but must use the synchronous receive mechanism. Does anyone know if this is true?
Any thoughts or suggestions will be greatly appreciated.
Brett
[Message sent by forum member 'bbergquist' (bbergquist)]
http://forums.java.net/jive/thread.jspa?messageID=345919