【正文】
EJB容器負(fù)責(zé)創(chuàng)建這個(gè)類(lèi)的實(shí)例,接口則供客戶(hù)端調(diào)用。s primary virtue — enabling transactional integrity over distributed applications — was of limited use to most enterprise applications, and the functionality delivered by simpler frameworks like Spring and Hibernate was more useful. Accordingly, the EJB specification (JSR 220) was a radical departure from its predecessors, following this new paradigm. It shows a clear influence from Spring in 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 styl