简体   繁体   English

带有 Swing 客户端的 Java EE 多层应用程序

[英]Java EE multi tiered application with Swing client

I have to develop enterprise level application using Java technologies.我必须使用 Java 技术开发企业级应用程序。 I decided to develop client side environment with swing and server side related things using Java EE components.我决定使用 Java EE 组件开发具有 Swing 和服务器端相关内容的客户端环境。 My planned way could be described as following我计划的方式可以描述如下

First swing client makes request to application server.第一个 Swing 客户端向应用程序服务器发出请求。 And application server has business logic and it has ability to decide which way should transfer my requests.应用服务器有业务逻辑,它有能力决定应该以哪种方式传输我的请求。 Database server has my DBs.数据库服务器有我的数据库。

these technologies I willing to use.这些技术我愿意使用。

  • swing for client side客户端摆动
  • servlet for HTTP request handling in application server用于在应用程序服务器中处理 HTTP 请求的 servlet
  • EJB for handling business logic in application server EJB 用于处理应用服务器中的业务逻辑
  • Hibernate to access my DBs form EJB.休眠以从 EJB 访问我的 DB。

Could you tell me above architecture is compatible with JEE enterprise level system architecture?你能告诉我上面的架构与JEE企业级系统架构兼容吗?

Swing <==>Socket<==>JEE (Application) REST based <==>Hiberate (DAO) Yes its good but. Swing <==>Socket<==>JEE (Application) REST based <==>Hiberate (DAO) 是的,它很好,但是。 But if your application is going to be used by different end user devices then you need to think different way of client side.但是,如果您的应用程序将被不同的最终用户设备使用,那么您需要考虑不同的客户端方式。 Using JNLP you can deliver your SWING client items to your end users that will give you better upgradation and later customization also possible without any intimation to your clients.使用 JNLP,您可以将您的 SWING 客户端项目交付给您的最终用户,这将为您提供更好的升级和后期定制,而无需向您的客户提供任何暗示。

This is my points only.这只是我的观点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM