具有Swing瘦客户端的Java Server应用程序体系结构 [英] Java Server application architecture with Swing thin client

查看:66
本文介绍了具有Swing瘦客户端的Java Server应用程序体系结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在寻找设置客户端/服务器应用程序.我计划将客户端编写为Swing瘦客户端.我不太确定如何设置服务器端应用程序.

I am currently looking to set up a client/server application. I am planning on having the clients written as a Swing thin client. I am not really sure how I should set up the Server side application.

Java Server端应用程序将具有应用程序业务逻辑,数据库访问等.我在Web上看到很多有关设置使用Web前端的Java Server端应用程序的信息.因此,我在Tomcat和完整的应用程序服务器(如JBOSS等)上看到了很多信息.由于我不会使用Web前端,因此我不确定如何设置服务器.我一直在研究Spring和Java EE.

The Java Server side application would have the application business logic, database access, etc. I see a lot information on the web about setting Java Server side applications that are use Web front ends. So I see a lot of information on Tomcat and full application servers like JBOSS, etc. Since I'm not going to be using a web front end I am not exactly sure how I should set up the server. I have been looking at Spring as well as Java EE.

这些是我最好的选择吗?还有其他我没有想到的选择吗?我应该将它们一起使用还是可以单独使用?

Are these my best options? Are there other options that I'm not thinking of? Should I use them together or is it something that I can use separately?

如果仅使用Java EE,是否需要完整的应用程序服务器(如JBOSS,Weblogic,Websphere等),或者这太过致命了吗?如果我也想使用JMS,是否还应该使用应用程序服务器,或者有替代方法吗?我最初的想法是,应用程序服务器有些过时了,但我不确定.

If I am only going to be using Java EE do I need a full application server like JBOSS, Weblogic, Websphere, etc or is this over kill? If I also want to use JMS, should I use an application server as well or are there alternatives? My first thoughts are that an application server is kind of over kill but I'm not exactly sure.

提前感谢您的所有想法!

Thanks in advance for all your thoughts!

推荐答案

我认为我和您一样处于类似情况.我打算继续使用Swing + Spring + JPA.远程处理应通过Spring Http Invoker完成.唯一的缺点是您需要一个Tomcat或Jetty之类的servlet容器来将http请求路由到Spring bean.但是像winstone这样的服务器(Hudson CI使用的服务器)非常轻巧,可以嵌入到应用程序中.

I think I'm pretty much in the same situation like yours. I'm planning to go ahead with Swing + Spring + JPA. The remoting shall be done through Spring Http Invoker. The only downside is you need a servlet container like Tomcat or Jetty to route the http requests to the Spring beans. But servers like winstone (which Hudson CI use) are quite lightweight and can be embedded in the application.

拥有Spring后端意味着您不需要应用程序服务器.但是如果将来您需要一个应用服务器,Spring也可以无缝地支持它.

Having a Spring back-end will mean that you don't need an application server. But should you need an application server in future, Spring can seamlessly support that as well.

这篇关于具有Swing瘦客户端的Java Server应用程序体系结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆