使用 spring 和 hibernate 的 java 桌面应用程序?
我必须开发一个 Java 桌面应用程序,并且习惯于使用 jsf spring jpa 和 hibernate 在 Java Web 架构中工作。
所以我的问题是哪种技术最适合构建我正在考虑的桌面应用程序 使用JIDE和spring Rich客户端构建了树层架构。
你们能告诉我你们对此有何看法吗?任何其他好的技术、教程、入门方法等,谢谢...=)
I have to develop a Java Desktop Application and I'm used to work in Java Web architectures using jsf spring jpa and hibernate.
So my question is what technology is the best to build a desktop application I was thinking about
using JIDE with spring Rich client and built a tree layer architecture.
Can you people tell me what you think about it? any other good technology, tutorials a way to start etc thanks... =)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
构建桌面应用程序的另一个不错的选择是 Vaadin。
它在 GWT 之上提供了 Swing 风格的编程模型、非常好的组件工具包、大量的附加组件以及良好的专业支持。他们最近在所有 Java 会议上大力推广该产品。当然值得一试!
http://vaadin.com
Another nice option for building desktop apps is Vaadin.
It provides a Swing-style programming model on top of GWT, a very nice component kit, lots of add-ons, and good professional support. They've been pushing the product hard at all the Java conferences lately. Certainly worth a try!
http://vaadin.com
我鼓励您查看 Eclipse RCP 项目。
但是,与其采取“经典 RCP”路线,不如查看 Eclipse 4 及其毕业的 e4 孵化器项目。
Eclipse 4 RCP 如果您不熟悉的话,您应该在精神上感到非常熟悉API,如果你来自Spring背景。
它具有构建在非常优秀的 Equinox OSGi 容器之上的面向服务的架构,如果您使用声明式服务,感觉很像 Spring。
它还具有非常干净的基于模型的应用程序布局定义,提供了灵活性和可组合性,可以轻松地超越我曾经使用过的任何 Web 框架(这确实没有说太多)。
编写 UI 组件时,您可以轻松依赖简单且功能强大的 DI,从而将与框架的耦合保持在绝对必要的最低水平。
I would encourage you to take a look at Eclipse RCP project.
But instead of taking the "Classic RCP" route, you would do much better to look at the Eclipse 4 and the e4 incubator project it has graduated from.
Eclipse 4 RCP should feel quite familiar to you in spirit if not in API, if you come from the Spring background.
It has service oriented architecture built on top of very excellent Equinox OSGi container, that feels a lot like Spring, if you use Declarative Services.
It has also very clean model based application layout definition that opens up flexibility and composability that can easily top any web framework I have ever worked with (which is admittedly not saying much).
When writing UI components, you can easily rely on easy and functional DI, allowing to keep coupling to the framework as low as absolutely necessary.
如今,我会完全远离厚客户。随着 HTML5 的发展,我将转向更 AJAX 的解决方案。查看 GWT 和 Echo3。 GWT 很重,但提供了全方位的工具,尤其是 GXT 工具集。 Echo3 非常轻,但缺乏您可能希望拥有的一些工业强度功能。 Echo3 还支持在桌面上运行其应用程序。
This day and age, I would stay away from thick client's altogether. With the evolution of HTML5 I would move to a more AJAX solution. Check out GWT and Echo3. GWT is HEAVY, but provides a full range of tools, especially slick with the GXT toolset. Echo3 is very light, but lacks some of the industrial strength features you'd probably like to have. Echo3 also provides support for running their apps on a desktop.
Spring Rich Client:最后版本发布日期:
2009-06-23:版本 1.1 .0
。最好使用定期维护的库。使用拖放来开发/设计自定义组件或 UI 控件是一个可怕的想法。放下工具。从长远来看,这只是浪费时间。维护这些组件将变得越来越困难。但显然这是值得商榷的。
您真的认为
JIDE
与JIDE
可以提供的价值相比,与难以维护的代码的复杂性相比,这是一个很好的权衡吗?对于我们的 Java 桌面应用程序,我们使用 JGoodies FormLayout 和BSAF(更好的 Swing 应用程序框架)API。到目前为止,该应用程序运行良好。
更新
不要忘记使用像 Spring/Guice 这样的依赖注入器。否则我相信你会生活在地狱里。
BSAF 的一个很好的起点可能是:使用 Swing 应用程序框架 &
对于 JGoodies:PDF 文档
Spring Rich Client: Last version released date: as
2009-06-23: Release 1.1.0
. It is preferable to use libraries which are maintained regularly.It is a horrible idea to develop/design custom Component or UI control using drag & drop tools. In long run, it will be just waste of time. It will become hard day by day to maintain those components. But obviously this is debatable.
Do you really think
JIDE
, it will be a good trade-off compare to the valueJIDE
can provide with the complexity to hard to maintain code?For our Java Desktop application, we are using JGoodies FormLayout & BSAF(Better Swing Application Framework) API. Till now the application is performing nicely.
UPDATE
Don't forget to use Dependency Injector like Spring/Guice. Otherwise you will be living in hell, I believe.
A good starting point for BSAF might be: Using the Swing Application Framework &
For JGoodies: PDF Document
另一个选择是 Eclipse 富客户端平台。
想象一下,从 Eclipse IDE 中删除与 Java 开发相关的所有内容:您将获得一个框架应用程序,可以使用 Eclipse 团队创建的相同库根据需要进行自定义。您的应用程序将具有插件架构、透视图、视图、更新功能等。
Another option is the Eclipse Rich Client Platform.
Imagine to remove from the Eclipse IDE everything is related to Java development: you get a skeleton app that can be customized as you like using the same libraries made by the Eclipse team. Your app will have a plugin architecture, perspectives, views, update capabilities and so on.
现在我会研究 JavaFx。看起来很有前途。我没有这方面的个人经验,但如果我处于你的位置,我会把它列入我的“检查”清单。不过它还很新,所以小心
Right now I would look into JavaFx. It looks very promising. I do not have personal experience with it, but I would have had it on my "to check" list if I was in your position. It's pretty new though so beware
您可以寻找的技术有
Eclipse RCP(我猜如果需要的话,这也可以轻松转换为 ajax 应用程序 Eclipse RAP 进行浏览)
Adobe AIR(如果您想要一个很酷的 UI)
JavaFX
Technologies that you can look for are
Eclipse RCP (I guess this can also be easily converted to ajax application Eclipse RAP for browse if needed)
Adobe AIR (if you want to have a cool looking UI)
JavaFX