为什么人们要设计难以编写和部署的EJB2?

发布于 2024-09-15 18:26:58 字数 119 浏览 2 评论 0原文

许多 J2EE 开发人员都知道 EJB2 迫使他们编写“无用的”Home 接口。另外,部署XML在应用程序服务器之间是不同的。

所以我不知道为什么EJB2多年来一直是J2EE规范的一部分?有任何非技术兴趣吗?

Many J2EE developers know that EJB2 forces them to write 'useless' Home interfaces. In addition, deployment XML are different among application servers.

So I don't know why EJB2 is part of J2EE specification for many years? Any non-technical interest are concerned?

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

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

发布评论

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

评论(3

请持续率性 2024-09-22 18:26:58

您是否在问为什么一般人仍然使用EJB2.1?

因为:

  • 这就是他们所知道的,他们感到害怕或没有时间学习新技能。
  • 因为无论谁想要该代码,都希望它遵循一个标准,而 EJB2.1 就是该标准。
  • 因为代码库的其余部分是 EJB2.1,并且没有人有时间和/或金钱来重构。
  • 因为客户只想要他们信任的技术,而他们信任的是那些还没有让他们失望的技术。

基本上,任何人使用遗留技术的原因都是一样的。

Are you asking why in general people still use EJB2.1?

Because:

  • That's what they know, and they're frightened or don't have time for a new skill set.
  • Because whoever wants that code wants it to follow a standard, and EJB2.1 is that standard.
  • Because the rest of the code base is EJB2.1, and nobody has the time and/or money to refactor.
  • Because the client only wants technology they trust, and what they trust is whatever hasn't failed them yet.

The same reasons anybody uses legacy technology, basically.

棒棒糖 2024-09-22 18:26:58

为什么 EJB2 是 J2EE 规范的一部分:因为它就是!
它曾经是,而且永远如此。 (您无法在中期更改具有约束力的合同。)

为了将其纳入规范的一部分,他们必须提供新规范:Java EE
这是 J2EE 的更新版本,使用 Java 5。

为什么它仍然被使用:

  • 参见上面,
  • 客户端没有金钱/时间来更改
  • 客户端使用的应用程序服务器的旧版本
  • ,因此我们不更改它

Why EJB2 is part of the J2EE specs: because it is!
It once was, and so it will always be. (You cannot change a binding contract in mid-term.)

In order to not make it part of the specs, they had to come with new specs: Java EE
This is the updated version of J2EE, using Java 5.

Why it is still being used:

  • see above
  • the client has no money/time to change this
  • the client uses and old version of the application server
  • it works, so we do not change it
明月夜 2024-09-22 18:26:58

EJB2的复杂性需要更多的程序员人力资源。所以EJB2有利于程序员的就业率。这就是 EJB2 生存的一个原因:)

The complexity of EJB2 needs more programmer human resource. So EJB2 is good for programmer employment rate. This is a reason for EJB2 survive:)

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