I was told to create a desktop application written in java, I chose JavaFX for creating rich UI.
I test my app with dummy data and it works fine, now I have to work with MongoDB which would be a local database in a machine on which the app would be installed. data is streaming and injected into the database within seconds, and every for example 2 seconds I have to query for newer data and show them in the app.
but I don't know how to make a data layer in my app that would communicate with the UI layer. (how to write POJO and DAO classes, make the data layer run in the background and not block the UI thread)
should I use Spring Boot to make my app? I have read that JavaFX and Spring Boot have their own application entry point
I have never got my hands dirty with the Spring framework.
actually it's the first time I'm creating a desktop app and I have no experience in working with MongoDB.