玩得怎么样!与 ZK Framework 不同的框架

发布于 2024-12-23 14:27:51 字数 136 浏览 1 评论 0原文

我希望在学习曲线、可用性、效率和使用场景方面有所不同。我想创建带有 JSON、XML 响应的 Web 服务,并在 Android 上使用它以及在网站上使用它。

我ZK很好,但是玩!对我来说是全新的。

谢谢&问候, 安缦

I want the difference in terms of learning curve, usability, efficiency and situations in which they should be used. I want to create webservice with JSON,XML responses and use it from an Android as well as use it on web site.

I am good in ZK but play! is completely new for me.

Thanks & regards,
Aman

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

烧了回忆取暖 2024-12-30 14:27:51

Zk 和玩吧!确实是两个非常不同的东西。我认为两者之间的主要区别是:

  • ZK 专注于 UI 组件——很像 ICEfaces 和其他类似的框架——而 Play! 完全没有; Play 中没有 UI 组件!
  • 在我看来,与大多数其他 Java/scala Web 框架相比,Play 提供了最不同的理念;这是一种回归基础的方法,废除了服务器端状态(这与 ZK 完全相反)以及随之而来的一切。同时,它仍然是一个功能齐全的堆栈,所有内容都集成在其中;您不必花费数小时来收集依赖项。

我过去曾短暂使用过 ZK,我认为 Play!比 ZK 更容易掌握,尽管这是一个非常相对的判断。不过,这里的方法有很大的不同,如果您想要创建基于 JSON/XML 的 Web 服务,那么就开始吧!看起来比 ZK 更可取,因为:

  1. 你不需要 UI 组件,所以这是 ZK 的主要卖点
  2. 使用 Play 的路由机制定义和维护你的服务将非常容易
  3. 实现你的服务将是关于尽可能简单明了(当然取决于您的具体要求)

Play! 的缺点具体取决于您的具体要求;但我想到的一个问题是构建与更传统和遗留服务(例如 EJB)高度集成的 Web 服务。自从玩!应用程序并不真正遵守任何常见的 Java EE 标准(即使它们可以在 Java EE 容器中运行),您最终可能会自己编写大量集成代码,而不是让容器为您完成这些工作。

Zk and Play! are really 2 very different things. The main differences between the 2 that I think of:

  • ZK focuses on UI components — much like ICEfaces and other similar frameworks — while Play! doesn't at all; there are no UI components in Play!
  • In my opinion Play offers a different philosophy more than anything else compared to most other Java/scala web frameworks; it's a back to basics approach that abolishes server-side state (which is the complete opposite of ZK) and everything that comes with it. At the same time, it's still a full-featured stack with everything integrated into it; you won't have to spend hours gathering your dependencies.

I've used ZK briefly in the past and in my opinion Play! is easier to pick up than ZK, even though that's a very relative judgement. There's a big difference in approach here though, and if you're looking to create a JSON/XML based web service then Play! seems much preferable over ZK because:

  1. You don't need UI components, so that's the main selling point of ZK out the window
  2. It's going to be very easy to define and maintain your services using Play's routing mechanism
  3. Implementing your services is going to be about as easy and straightforward as it could ever be (depending on your specific requirements, naturally)

The disadvantages of Play! really depend on your specific requirements; but one issue that comes to mind is building web services that integrate heavily with more traditional and legacy services (such as EJB, for example). Since Play! applications don't really adhere to any of the common Java EE standards (even though they can run in a Java EE container), you might end up writing a lot of integration code yourself rather than having the container do it for you.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文