I have the following problem:
I have a <p:dataTable>
in dashboard.xhtml and the appropriate DashboardController.java that loads the data for dataTable.
I also use a HttpServlet for incoming messages. Now, whenever a new message arrives, the Servlet saves the message to the database.
I want the dataTable to be updated, when the new message arrives.
I do not want to use the poll-feature and try to get updates every x seconds. Is there a handsome solution?
By the way: I tried to implement the MessageHandler.java functionality into the DashboardController.java (easiest way), but the MessageHandler has to extend from HttpServlet and PrimeFaces seems to struggle with that.