Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Client Server application

 
Ranch Hand
Posts: 44
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello;

I need to create client server application in java and I need to have desktop interface and web based interface. For desktop interface, I need to use RMI (remote method invocation) for desktop. So what is the recommended Java to be used?

In other words:
I am thinking to use spring + swing + vaadin, is it fine? Or it is better to use spring + javafx + vaadin?

Regards
Bilal
 
Sheriff
Posts: 7108
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JavaFX is the more modern GUI for Java, so I'd use that regardless.  But it has the added value that it can run in a web browser as well as the desktop.  I worked with Vaadin several years ago and it's a good product, but I'd look into using JavaFX for both interfaces first.
 
Marshal
Posts: 70292
282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
. . . and welcome to the Ranch
 
Bilal Ghayad
Ranch Hand
Posts: 44
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the help and advise.
And what is the benefit of using JavaFX with Spring?
Also, if I used JavaFX, any need for vaadin (or what kind of work exactly that will let me need vaadin)?

Regards
Bilal
 
Knute Snortum
Sheriff
Posts: 7108
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So I have never launched a JavaFX program in a browser; I only read that it could be done.  Now that I'm looking into it closer, it seems that when Oracle says it can be launched in a browser, they mean with WebStart or JPNL.  I suspect that's not what you want.  You probably want to start a browser, type in a URL, and get your app.  But look at Oracle's JavaFX Deployment documentation to be sure.

So a framework like Vaadin or GWT is necessary, it looks like.  But this raises a question: Why do you want both a desktop and web application?  Once you have a web app it can be launched from any desktop with a browser.  Still, if you really want both, you should be able to reuse 2/3 of your code, since the business rules and backend should be the same.
 
This tiny ad will self destruct in five seconds.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic