Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

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

scott.stark@jboss.org

2007-08-10


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
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.