• Post Reply Bookmark Topic Watch Topic
  • New Topic

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: 4422
108
  • 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?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!