【文章內(nèi)容簡介】
lex than those developers were used to. An abundance of checked exceptions, required interfaces, and the implementation of the bean class as an abstract class were all unusual and counterintuitive for many programmers. The problems that the EJB standard was attempting to address, such as objectrelational mapping and transactional integrity, were plex, however many programmers found the APIs to be just as difficult if not more so, leading to a widespread perception that EJBs introduced plexity without delivering real benefits. 樣例文本 C ? EJB規(guī)范起初的一個主要價值 —對分布式應用進行事務管理 —在隨后的實踐中被一致認為幾乎沒能派上用場。對于企業(yè)級應用來說, Spring和Hibernate等簡化框架更加實用。因此, EJB ( JSR 220)為了迎合這個趨勢相比于其前輩進行了一次激進的大跳躍。受到 Spring 影響,EJB “傳統(tǒng)簡單 Java對象( POJO)”;同時,支持依賴注入來簡化全異系統(tǒng)的集成與配置。 Hibernate的創(chuàng)始人 Gavin King參與了這一新版規(guī)范的制訂,并對 EJB大加提倡。 Hibernate的許多特性也被引入到 Java持久化 API當中,從