JavaFX in enterprise web applications - good alternative to classic web pages?

前端 未结 3 747
时光说笑
时光说笑 2021-02-04 14:05

We developed several web applications for different customers, from simple kind-of-boring-looking CRUD-style GUIs for those poor admin guys to fancy-schmancy AJAX-enhanced GUIs

相关标签:
3条回答
  • 2021-02-04 14:53

    You may want to take a look at DataApp sample from JavaFX Samples bundle at http://www.oracle.com/technetwork/java/javafx/downloads/index.html

    It's an example of the enterprise application with JavaFX UI in Browser. It will give you a good example of that can be made on JavaFX for enterprise clients.

    You may need to invest some time into installing MySQL, EE and stuff for this sample (quite easy, just follow provided README), but you will see how full stack is handled from DB to client UI.

    Small screenshot of the first screen:

    DataApp Sample

    0 讨论(0)
  • 2021-02-04 15:08

    I'd go for HTML 5, unless I had some needs a web app couldn't satisfy.

    I'm certain you can build great apps with JavaFX, but there is very little tooling, except for the standard Java stuff. And since it's not very widely used, you'll have trouble finding support, and hiring people who are good at it. There's also always the risk of it going the same way as its .Net counterpart Silverlight - to the trash can (Oracle aren't sentimental). As for Flex, Adobe just donated Flex to Apache with the explanation that HTML 5 is the "best technology for enterprise application development".

    Compare this with HTML 5. It's not only more widely used (which means you'll be able to find support and have an easier time recruiting), but it also gains more support, better tooling and new features continually. I think it's rather obvious which is more future proof.

    0 讨论(0)
  • 2021-02-04 15:09

    Most examples of "the enterprise side" of JavaFX you'll find will be a JavaFX client talking to the back end through a RESTful webservice.

    But, Java Web Start is a cool technology. With it you will have an application client launched through your web site, automatically updated to the latest version and with all new dependencies automatically downloaded from the server. You can even do dependency injection and inject a client local proxy to server side resources; Enterprise JavaBeans, JMS administered objects et cetera.

    This is a really useful technology, one that will let your client talk with the server in a numerous amount of ways and not only use HTTP wired web services. However, JavaFX brake that pattern. There isn't a straight forward way to embed a JavaFX application client in an EAR package and have it use dependency injection. But I found a solution which is quite intuitive and simple to reproduce. So to give you yet another example of a JavaFX application working as a remote GUI to the back end, please have a look at my tutorial:

    http://blog.martinandersson.com/the-enterprise-side-of-javafx-the-missing-part/

    0 讨论(0)
提交回复
热议问题