permaculture playing cards*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB3 interceptor issue" Watch "EJB3 interceptor issue" New topic
Author

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-2
Interceptor-1: After Proceed


SCJP 5 (98%) - SCBCD 5 (98%)
 
jQuery in Action, 2nd edition
 
subject: EJB3 interceptor issue
 
Similar Threads
STRUTS2: Help.. <s:actionerror/> has stopped working and I have no idea why
Help need to exclude list of bean classes from interceptors
Pass ActionMessages from one Action to another action class
Hibernate CRUD Audit
interceptor not working