Using EJB Interceptors — Part 1
EJBs provide the ability to intercept method calls to perform some common logic to all method calls like logging, or security checks. Three types of interceptors may be used: around-invoke interceptors, business method interceptors and lifecycle callback interceptors. In this post we only mention around-invoke interceptors.
To use around-invoke interceptors we use the @AroundInvoke annotation. The [...]
A Look at EJB 3.1
With the introduction of JEE6, EJB 3.1 brought several improvements over EJB 3.0. With EJB 3.1 there is now no need to define home/local interfaces. Now an EJB can be defined simply with an annotation. For example to define a stateless session bean:
@Stateless
public class SimpleSessionBean {…}
Singleton Beans are introduced with version 3.1. The application server [...]