This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Invocation Order of Interceptors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Invocation Order of Interceptors" Watch "Invocation Order of Interceptors" New topic
Author

Invocation Order of Interceptors

Treimin Clark
Ranch Hand

Joined: Nov 12, 2008
Posts: 757
According to WhizLabs, the invocation order of interceptors is:
Method-Level Interceptors --> Bean Interceptors.

But as I heard somewhere before, it should be:
Bean Interceptors --> Method-Level Interceptors .

Which one is the correct, please confirm.
Anish Mathur
Greenhorn

Joined: Jun 30, 2008
Posts: 9
Bean Interceptors --> Method-Level Interceptors
is the correct one.

Default interceptors are triggered first, then the class-level interceptors and finally the method-level interceptor.
Treimin Clark
Ranch Hand

Joined: Nov 12, 2008
Posts: 757
Thanks Anish.
 
Have you checked out Aspose?
 
subject: Invocation Order of Interceptors
 
It's not a secret anymore!