This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Journey To Enterprise Agility and have Daryl Kulak & Hong Li on-line!
See this thread for details.
Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply 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 ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Strategy for JavaFX desktop application and remote MySQL  RSS feed

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey all,

I started with a project for an acquaintance but it turned out that they needed a quite complex software solution. It has been a really good learning trajectory next to my study, but I'm lost in all the options and strategies right now.
Let's introduce the problem I'm facing, in hope someone with experience with writing such software can make a recommendation:

- I want to write a front-end JavaFX desktop application, that uses (indirectly) a MySQL/MariaDB database
- I'm familiar with JPA specifically Hibernate, already wrote most of the entities
- My problem is, what to choose for back-end implementation? I've looked at Tomcat, GlassFish with RESTful Web Service, or EJB 3.x, etc?

The entities also use files stored on the same server where the back-end will be running, like the Product entity uses .jpg images and inquiries use .docx files to generate .pdf files, etc.
Any advice on what to choose for back-end? I can provide more details if needed.
 
Collin Amato
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some additional info, amount of concurrent users will be around 5 and I'm already looking into 2FA with Google Authenticator, the users will need to use that when they're trying to connect from a new IP address.
 
Saloon Keeper
Posts: 4690
117
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Either Tomcat or GlassFish could be set up to serve JAX-RS web services. If the server does nothing else, then Tomcat would suffice - unless you really want EJB, for which you'd need GlassFish. But if you already have the JPA/Hibernate mappings, I'm guessing that EJBs are no longer being considered.
 
Collin Amato
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your response Collin. I've set up a Tomcat server with JAX-RS web services, it was really great letting two applications communicate for the first time. I found out that Spring lives up to its name in simplifying things.
I interpret your answer as if JPA (Hibernate specifically) is not compatible with EJB? Isn't JPA originally a part of EJB? JPA 2.1 is still compatible with EJB 3.x, right?
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!