15.1. Intercepting Methods
To understand when to use interceptors, we'll look at some modified code of our TravelAgent EJB's bookPassage( ) method. The application developer of this code has added some profiling logic to time how long t...
15.2. Interceptors and Injection
Interceptors belong to the same ENC as the EJBs they intercept. Like the EJBs they intercept, interceptor classes have full support for all the injection
annotations, as well as injection through XML. So...
15.3. Intercepting Life Cycle Events
Not only can you intercept EJB method invocations, but you can also intercept EJB life cycle events. These callbacks can be used to initialize the state of your EJB bean classes, as well as the intercep...
15.4. Exception Handling
Exception handling with interceptors is simple yet powerful. Since interceptors sit directly in the Java call stack of the bean method or callback that is being invoked, you can put a try/catch/final...
15.5. Interceptor Life Cycle
Interceptor classes have the same life cycles as the EJBs they intercept. Consider an interceptor class as an extension of the EJB's bean instance. They are created along with bean instances. They are destroyed, passiv...
15.6. Bean Class @AroundInvoke Methods
This chapter has mostly discussed interceptor classes. @AroundInvoke methods can also exist inside EJB bean classes. When used inside a bean class, the @AroundInvoke method will be the last "interceptor"...
AJAX popular information C# language guides Windows books and cookbooks
.......
С 2009 года мы стали переводить структура сайта на различные языки. Сайт теперь будет содержать книги не только на английском языке, но также и на других европейских языках, в том числе и на Русском языке.