users@ejb-spec.java.net

[ejb-spec users] Question about <interceptor-order> and _at_Priority

From: <mjremijan_at_yahoo.com>
Date: Fri, 21 Jun 2013 12:42:59 +0000 (UTC)

I'm trying to understand the behavior if all of the interceptors on a
bean are not listed in the <interceptor-order>

So, for example, suppose I have the following 8 interceptors which will
be called before the bean method is executed...

 - 3 default-level interceptors
 - 2 class-level interceptors (using the @Interceptors tag)
 - 3 method-level interceptors (again using the @Interceptors tag)

Now suppose I have only the 3 default-level interceptors in my
ejb-jar.xml <interceptor-order> tag. What will the ejb container do:

Will it only execute the 3 I have in the ejb-jar.xml and ignore the
other 5?

Will it execute the 3 default-level interceptors in the order I
specified in ejb-jar.xml the proceed with the others in the order they
appear in the @Interceptors tag?

Can the <interceptor-order> tag reorder interceptors specified by
@Interceptors?

Finally, when you through in global-level interceptors with the
@Priority tag, where are they in the order? I'm assuming @Priority
interceptors are all executed before default-, class-, and method-level
interceptors?

thanks!
Mike