2
I’m building a Java application that should show real-time notifications on the screen.
- A teacher requests a reservation;
- Reservation data is stored in a json object (or in a request table);
- At the same time, a notification appears on the operator screen;
- The operator may approve the reservation, which would give a
INSERT
in the database with the reservation data.
I figured the json shape would be easier, so it wouldn’t involve Java or SQL in the process. But my question: is how to do this exactly? I don’t know much about Javascript yet, but I imagine it would be necessary to use ajax, right? Could you help me with this?
java
orjavascript
?– Roknauta
As your question is very wide, and Real Time can vary greatly in complexity, I will suggest that you start your research with Node.js: https://nodejs.org/en/
– Thiago Santos
@Douglas, the application itself is written in Java, but what I want to do doesn’t necessarily need Java, so I focused on Javascript and jQuery.
– Thales Alves
@Thiagosantos, thank you. I’m going to make a move on Ode.js.
– Thales Alves
I believe that, since we will not add anything to the community here, it is better to close that question. A last tip: https://atendesigngroup.com/blog/using-nodejs-create-real-time-web-applications is a good starting point!
– Thiago Santos
See if it helps: http://gabrielfeitosa.com/angularjs-refresh-periodico/
– Igor Silva