<img alt="" src="https://secure.leadforensics.com/150446.png " style="display:none;">


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 is a leading digital innovation partner for enterprises and technology companies that utilizes emerging technologies for creating engaging customers experiences. Being a customer-focused and technology-driven company, it always helps clients in crafting holistic business value for their software development efforts. It offers software development and consulting services for cloud computing, enterprise mobility, big data and analytics, user experience and digital commerce.