j2ee‎ > ‎

EJB 2.1 Client to EJB 3.0 Session Beans

posted Jun 20, 2010, 7:27 PM by Kuwon Kang

Sun EJB 3.0 Specification을 보면 아래 Chapter가 있다.
EJB 2.1에서 EJB 3.0호출에 대한 내용이다.

3.6 Remote and Local Client View of Session Beans Written to the EJB 2.1 Client View API

그중에 내용을 보면 아래와 같다.

The EJB 2.1 and earlier specifications require that the client first obtain a reference to a session bean’s

home interface, and then use the home interface to obtain a reference to the bean’s component interface.

This earlier programming model continues to be supported in the EJB 3.0. Both dependency injection

and use of the EJBContext lookup method may be used as an alternative to the JNDI APIs to obtain a

reference to the home interface.

따라서 EJB Home Interface를 획득하고 Component Interface를 획득하는 방식이다.

이러한 모델은 EJB 3.0에서 지원되어야 하고 Dependency Injection과  EJB Context Lookup방식 모두 사용할 수 있다.

Comments