EJB3和Spring的比较

上一篇 / 下一篇  2007-12-14 10:33:34

Reza Rahman对Ejb3和Spring的评论。。。

Last night I attended a New England Java User Group (NEJUG) meeting where Reza Rahman presented a "comparative analysis" of EJB 3 and Spring. Reza is one of the authors of EJB 3 in Action. I enjoyed meeting Reza and respect him for presenting what may be considered a controversial topic.

I will provide brief responses to 10 "themes" of the presentation.

1. EJB uses annotations for metadata. Spring uses XML.
2. Spring allows you to support multiple deployment environments but requires more configuration.
3. EJB with JPA, Spring with Hibernate
4. Spring makes no assumptions, you have to provide configuration.
5. Spring does not have a stateful application paradigm.
6. Spring requires configuration of a container per MessageListener.
7. Concurrent Consumers cannot be greater than 1.
8. Spring's usage of the AspectJ expression language is powerful but cryptic.
9. Spring tool support has been sparse.
10. With EJB as a standard, you can migrate from one vendor to another. With Spring, you still have to port the metadata.

TAG: ejb spring

引用 删除 kylin_bo   /   2009-06-12 12:15:28
1
 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

日历

« 2012-05-25  
  12345
6789101112
13141516171819
20212223242526
2728293031  

我的存档

数据统计

  • 访问量: 714
  • 日志数: 2
  • 建立时间: 2007-12-14
  • 更新时间: 2007-12-27

RSS订阅

Open Toolbar