In this section, we will look at an example of the original EJB interceptor implementation.
Suppose that there is a stateless session EJB, such as AcademicFacadeImpl, as well as a business method called testReview. This method is responsible for scheduling a student test review. Let's say that we want to know, statistically, which students have made the most test review requests. We could do this within the business code, but that is not what we want. Instead, we want to separate statistic logic from business logic statistics—we want a statistic interceptor.
First of all, we will create an EJB target class named AcademicFacadeImpl (this class was already created in the last chapter). In the beginning, there ...