• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Client Server application

 
Ranch Hand
Posts: 58
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 79263
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
. . . and welcome to the Ranch
 
Bilal Ghayad
Ranch Hand
Posts: 58
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic