Spring 和EJB战争将结束:Spring将支持EJB3.1标准:Spring will also be a full featured EJB 3.1 implementation for use in the WebLogic application server.
Rod Johnson 说Spring 2.5的dependency injection annotations是学习得益于EJB 3.0的 @Resource 和 Google's Guice, 我不知道他为什么没有提picocontainer,至少他的Spring 2.5开始直接大胆使用DI的auto wiring,而2005年我的Jdon框架就完全是auto wiring。
Rod 鼓励开发者developers使用EJB's @PostConstruct and @PreDestroy annotations因为他们是标准化的,Spring已经支持他们,This could be the end of Spring vs EJB wars.
其实EJB的@PostConstruct and @PreDestroy @Resource annotations都可以在EJB2中找到影子和原根,表现语法不一样,但是内部机制原理是一致的。所以,以前没有学过EJB的,看来还是要补这一课。