The moose likes EJB and other Java EE Technologies and the fly likes EJB3 interceptor issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB3 interceptor issue" Watch "EJB3 interceptor issue" New topic

EJB3 interceptor issue

tarek helmy
Ranch Hand

Joined: Nov 14, 2008
Posts: 42
i use two interceptors for session bean (deployed at glassfish v2)
but i found that
one postConstruct method execute in the first interceptor , but the other does not
is there is any reason for that?
Ralph Jaus
Ranch Hand

Joined: Apr 27, 2008
Posts: 342
Did you call proceed() in the first interceptor ? See the following example:
If there is a corresponding print statement in the second interceptor then the log output looks like

Interceptor-1: Before Proceed
Interceptor-1: After Proceed

SCJP 5 (98%) - SCBCD 5 (98%)
I agree. Here's the link:
subject: EJB3 interceptor issue
jQuery in Action, 3rd edition