File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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%)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB3 interceptor issue
 
Similar Threads
Hibernate CRUD Audit
Help need to exclude list of bean classes from interceptors
Pass ActionMessages from one Action to another action class
interceptor not working
STRUTS2: Help.. <s:actionerror/> has stopped working and I have no idea why