Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

How to make Connection between UI layer with data Layer in JavaFX desktop app with mongodb database?

Posts: 13
Android Java Linux
  • Mark post as helpful
  • send pies
  • Report post to moderator

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.

I would appreciate any idea or advice.

Posts: 218
  • Mark post as helpful
  • send pies
  • Report post to moderator
Looks like a duplicate of this:
Posts: 25956
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Report post to moderator
I've locked this thread, then. Thanks.
expectation is the root of all heartache - shakespeare. tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic