Jakarta Enterprise Bean session and message-driven beans support interception as defined in [interceptors].
When running in Jakarta EE, the container must extend the rules defined in [enabled_interceptors] and also ensured that:
-
Interceptors declared using interceptor bindings are called after interceptors declared using the
@Interceptor
annotation (or using the corresponding element of a deployment descriptor). -
Interceptors declared using interceptor bindings are called before any around-invoke, around-timeout, or lifecycle event callback methods declared on the target class or any superclass of the target class.
For a custom implementation of the Interceptor
interface defined in [interceptor], the container also calls intercepts()
to determine if the interceptor intercepts an Jakarta Enterprise Bean timeout method invocation.