【正文】
數(shù)封裝成一個消息發(fā)送給服務(wù)器。 ? 兩個接口分別被稱為 Home接口和組件接口,負責(zé)提供各個 EJB遠程方法聲明。規(guī)范給定了 EJB與 EJB容器之間,以及用戶代碼與 EJB/EJB容器之間的交互方式。 ? 接口方法:由組件接口提供的針對特定實例的業(yè)務(wù)方法。EJB容器負責(zé)創(chuàng)建這個類的實例,接口則供客戶端調(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 annotation