-
Sep 11th, 2008, 07:25 AM
#1
PostProcessor suppressing interceptor?
Hello friend,
I have a data access (DAO) class. An implementation of org.aopalliance.intercept.MethodInterceptor applied to this DAO logs the entry and exit to the methods in the DAO.
I'm using JPA (on hibernate) for persistence. I'm getting the JPA EntityManager injected by spring to the DAO. For that, I have to declare the following bean in the application context.
<bean class="org.springframework.orm.jpa.support.
PersistenceAnnotationBeanPostProcessor" />
Till I declare this postprocessor, the interceptor for logging in the DAO is working fine. But with the introduction of this, the logging adviser is ignored.
what could be the problem?
Thanks & Regards,
Rupesh
-
Jul 3rd, 2009, 05:48 AM
#2
Hi,
Can you please post your config file ... since i tried to have a simple postprocessor bean and also having an interceptor which logs the entry exit of each methods which is working fine.
Thanks
Hetal
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules