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

前端 未结 3 748
时光说笑
时光说笑 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 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/

提交回复
热议问题