In my view, your application has this responsive routine, ie, do something automatically when any action occurs. Correct?
If your web server supports, I suggest you use WebSocket
to do exactly what you need.
The client, when connecting in your application will create a persistent connection, which will exist as long as he’s logged in. This way, you can respond from the server to a particular client (or several) always when the routine you expect is executed.
You can also use the Spring-WebSocket
to facilitate your implementation. You can also use an API such as SocketJS
or Socket.io
javascript.
Hug.
The Spring Framework provides a Websocket API Designed to Adapt to
Various Websocket Engines. Currently the list includes Websocket
runtimes such as Tomcat 7.0.47+, Jetty 9.1+, Glassfish 4.1+, Weblogic
12.1.3+, and Undertow 1.0+ (and Wildfly 8.0+). Additional support may be Added as more Websocket runtimes become available.
Sources:
This plugin seems to be well documented. What code did you run and didn’t work?
– Sergio
True, it’s well documented, enough... but it just doesn’t work. It’s the Quick Start part, it just has that '-'
– Felipe S. Fernandes
You can put in the question your implementation of this example, or whatever you have and does not work?
– Sergio
It’s because I left it at work :/. But it’s the same as the example, only changes the Host, User and Password, which I’ve already connected in the Mysql package of Nodejs and I’ve done everything in the database, no problems.. No different from there, I was just thinking it could be in the archives, so I even put the photo.
– Felipe S. Fernandes
How is your database? There are two important configuration parameters that in the example are with
'myDB.table.field.value'
and'match this string or regex'
, but you need to adapt...– Sergio
Yeah, those I switched, they were the same. 'nodejs_db.posts.content.value' and 'Test'. I changed the value in DB to 'Test' and still nothing '-'.
– Felipe S. Fernandes
I’ve already used https://github.com/numtel/mysql-live-select. To work, you need to enable Mysql binlog.
– vmartins
managed to solve?
– durtto