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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to