So I'm facing a challenge to develop a web application which would have to display real time data coming from remote server. To connect to this remote location I'd need TCP sockets and some arbitrary protocol(not HTTP).
My goal is to have the web server connect to the other server, keep the connection alive indefinitely and continuously read data while displaying that data in real time on the website.
Now my question is, how would I go about this using Java EE? I could also develop completely separate software to handle the outgoing TCP connection, but how then would I handle communication between web app and this other software?
this is a rather broad question and there is several ways to do this.
one way is to have an mdb in the webapp that consumes from a queue that the external server is producing messages to. ive been doing this using glassfish and activemq messagebroker.
then primefaces push to send events from webapp to client browser
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With