This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I have some doubts regarding EJB 3.0 Interceptors.
First, according to the EJB 3.0 Core specification, lifecycle call back methods can only throw System Exception. How about @AroundInvoke Interceptor methods? Can a method with @AroundInvoke throw Application Exception?
Second, I don't quite understand the below statement from EJB 3.0 specification.
The deployment descriptor may be used to augment the interceptors and interceptor
methods defined by means of annotations. When the deployment descriptor is used to augment
the interceptors specified in annotations, the interceptor methods specified in the deployment descriptor
will be invoked after those specified in annotations, according to the ordering specified in sections
12.3.1 and 12.4.1.
Does it mean that interceptors specified in the deployment descriptor are always invoked after the interceptors defined by annotations?