[jboss-user] [EJB 3.0] - Re: EJB3 Interceptor never called - how to debug?

tynor do-not-reply at jboss.com
Fri Aug 10 08:35:06 EDT 2007


Thanks - that's exactly right.  It's unfortunate that there this disparity between the inteceptor/listener interfaces -- I'd planned to use the 
the interceptor InvocationContext's contextData map to store some object-level state.  I'll have to rethink since the EntityListener doesn't pass a context - only the entity Object.

anonymous wrote : For EJB entities:
  | 
  | Use @EntityListener annotation with @PrePersist, @PostPersist, @PreRemove
  | @PostRemove, @PreUpdate, @PostUpdate, @PostLoad
  | 
  | 
  | @Interceptors works fine for session bean and MDB. I'm not sure it is supposed to works for entity 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073007#4073007

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073007



More information about the jboss-user mailing list