Accessing EJB 3.1 components from local POJO client

EJB 3.0 introduced the @EJB dependency injection which is used in local or remote clients to obtain access to the session beans (In EJB 3.0 only session beans have a client view). However, this dependency injection can be used only in web components whose life cycle is managed by the Java EE web container and session beans. For other clients, the access to the EJB components need to be obtained via JNDI lookup.

Topics: EJB Session Facade EJB 3.1 Application Design Business Delegate Domain Model JNDI Technology Service Locator

e-Zest Solutions is digital experience engineering company with facilities in the United States (Detroit & San Jose), Germany (Hannover), United Kingdom (London UK) and India (Pune) with global clientele. Our services include custom software development, offshore software development, UX consulting, BigData, Managed cloud Services (Azure & AWS), SharePoint consulting/Migration, Enterprise Java application development, Automated software testing services.