The top three values of EJB are as follows:
1. It is agreed upon by the industry. Those who use EJB will benefit from its
widespread use. Because everyone will be on the same page, in the future
it will be easier to hire employees who understand your systems (since
they may have prior EJB experience), learn best practices to improve your
system (by reading books like this one), partner with businesses (since
technology will be compatible), and sell software (since customers will
accept your solution). The concept of “train once, code anywhere” applies.
2. Portability is easier. The EJB specification is published and available freely
to all. Since EJB is a standard, you do not need to gamble on a single, proprietary
vendor’s architecture. And although portability will never be
free, it is cheaper than without a standard.
3. Rapid application development. Your application can be constructed
faster because you get middleware from the application server. There’s
also less of a mess to maintain.

解决方案 »

  1.   

    EJB是一个组件模型,而且是服务器端的组件。COM+是微软的组件模型。
    既然是组建模型,当然都要实现一些功能---为了方便组建的开发,把一些基本功能抽出来,由容器帮你完成。
    目录服务:因为组件承诺位置透明,所以要有一个目录,帮助你定位组件,java就是JNDI,COM是在注册表中
    事务服务:这也是很重要的,都提供了对事物的内建的支持,为什么重要,是在不好说什么,当然重要了:)
    对并发的支持:多线程怎么办?COM是套间模型,java是...(对不起,只看过,没用过,向不起来了)
    所以,我认为,基本技术就是那样,不同厂商有不同的实现,但基本思路还是一致的.
      

  2.   

    想看一下EJB中关于并发处理和事务处理的源码,请问那家厂商提供?
    jboss,代码中哪部分是关于并发和事务处理的?我想研究研究。