【正文】
n its use of POJOs, and its support for dependency injection to simplify configuration and integration of heterogeneous systems. Gavin King, the creator of Hibernate, participated in the EJB process and is an outspoken advocate of the technology. Many features originally in Hibernate were incorporated in the Java Persistence API, the replacement for entity beans in EJB . The EJB specification relies heavily on the use of annotations, a feature added to the Java language with its release and Convention over configuration, to enable a much less verbose coding style. ? Accordingly, in practical terms EJB is very nearly a pletely new API, bearing little resemblance to the previous EJB specifications. 樣例文本 B ? Gradually an industry consensus emerged that the original EJB specification39。 ? 在 EJB ,每個 EJB都由一個類和兩個接口組成。與特定實(shí)例無關(guān),僅負(fù)責(zé)一些公共內(nèi)容,比如創(chuàng)建一個新的 EJB實(shí)例( create方法),或?qū)ふ乙粋€已經(jīng)存在的 EJB實(shí)例( find方法)等等。 樣例文本 C ? EJB部署于應(yīng)用服務(wù)器端的 EJB容器中。 EJB容器負(fù)責(zé)創(chuàng)建這個類的實(shí)例,接口則供客戶端調(diào)用。 ? 接口方法:由組件接口提供的針對特定實(shí)例的業(yè)務(wù)方