由“A brief history of EJB”想到

Posted on 26th July 2005 by Nio in 程序人生

A brief history of EJB…. Now, bringing the survey question I started off this blog with back into perspective, notice that the majority of people were NOT using EJB for it's component benefits, or it's distribution benefits. The majority of people were using it for it's framework benefits, and those benefits were better served by light weight open source. In 2003, I think the only real value proposiiton EJB brought to the table was it's use as a distributed object framework, for real large scale systems, which was where it was originally intended to be used to begin with. Thus, as I would tell the audience at th talk: "you've all misused EJB". The implication here being that the 15% who actually used EJB to distribute their business logic across physical tiers did not mis-use it - they were already dealing with a situation where they had decided that distribution was necessary and EJB certainly was the right technology choice at the time. ….现实中确实有很多人根本没有理解 EJB 的功用,不管三七二十一,上来就是 EJB、EJB,累得半死写完繁琐的代码之后,心理还非常自豪:我用的是 EJB 耶 :) 哈,最后发现是拿原子弹打蚊子……对于任何项目,我们都要了解项目的特性,为项目量身选择最佳的实现方式,不要再花费宝贵的时间去争论哪种语言比较好了,我们要 J2EE/.Net,我们同样需要 PHP,需要 Delphi,需要 C/C++!

2 Comments »

  1. 实际上,不少人对ejb不以为然。尤其对于大多数的应用来说,ejb并不是必须的。

    Comment by zeal — July 29, 2005 @ 11:36 pm

  2. 是呀,再加上 EJB 的编写过于繁琐,现在分层越来越细,导致垂直编码越来越多,这些东东都各有利弊,需要找个平衡点,而且这个平衡点也不是恒定的

    Comment by Nio — July 30, 2005 @ 11:55 am

Leave a comment