Results 1 to 2 of 2

Thread: PostProcessor suppressing interceptor?

  1. #1
    Join Date
    Sep 2008
    Posts
    4

    Default 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

  2. #2
    Join Date
    Jun 2009
    Posts
    190

    Default

    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
  •