Blogs

Asynchronous Methods In EJB 3.1

With the introduction of asynchronous methods in EJB 3.1, the clients can now call session bean methods asynchronously using the no-interface, remote or local business views. Prior to EJB 3.1, JMS or Message Driven Beans(MDBs) were used for performing asynchronous tasks. Now with the inclusion of asynchronous methods in session beans in EJB 3.1, the MDB need not be used unless there is really a need for point-to-point or publish-subscribe messaging.

Topics: EJB 3.1 @Asynchronous Asynchronous Method AsyncResult async-methodType Session bean Future Technology

Caching with periodic updates using EJB 3.1 Singleton and Timer

With the introduction of Singleton beans in EJB 3.1, implementing a cache in the business-tier has become easy. Only one instance of a singleton bean is created per JVM (in case the application server runs in multiple clusters) by the EJB container. The singleton beans also provide other features of EJB – transaction and concurrency management, security, remote access, life cycle callbacks, interceptors and dependency injection.

Topics: EJB Scheduler EJB 3.1 JVM Java Caching singleton bean Timer Schedule Technology

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.