Announcement Announcement Module
Collapse
No announcement yet.
DefaultAdvisorAutoProxyCreator help needed Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • DefaultAdvisorAutoProxyCreator help needed

    Hello everybody,
    I am using the DefaultAdvisorAutoProxyCreator to create transaction proxies for my DAO classes. The transaction semantics are declared using the Java5 annotations. It worked fine till I added some more advisors targeting a specific class. Since then I have my new advised (with the new advisor) classes proxied and for the DAO classes I get the message
    INFO: Bean 'BaseDAO' is not eligible for getting processed by all BeanPostProcessors (for example: not el
    igible for auto-proxying).

    After I removed the new Advisor from the configuration, the Transaction proxy is being created again. Does anyone have idea if this is a bug or am I doing something wrong?

    Thanks in advance.
    Regards,
    Dragomir

    P.S. Below is snippet of my applicationContext.xml

    <bean id="DefaultAdvisorAutoProxyCreator"
    class="org.springframework.aop.framework.autoproxy .DefaultAdvisorAutoProxyCreator" />

    <bean id="transactionInterceptor"
    class="org.springframework.transaction.interceptor .TransactionInterceptor">
    <property name="transactionManager" ref="txManager" />
    <property name="transactionAttributeSource">
    <bean
    class="org.springframework.transaction.annotation. AnnotationTransactionAttributeSource" />
    </property>
    </bean>
    <!-- BaseDAO: Hibernate implementation -->
    <bean id="BaseDAO"
    class="x.x.x.dao.hibernate3.BaseDAOImpl">
    <property name="sessionFactory">
    <ref local="sessionFactory" />
    </property>
    </bean>


    <bean id="BuildEventNotifierAdvisor"
    class="org.springframework.aop.support.RegexpMetho dPointcutAdvisor">
    <property name="advice">
    <ref local="BuildEventFiringInterceptor" />
    </property>
    <property name="pattern">
    <value>com.xxx.build.Builder.doBuild</value>
    </property>
    </bean>

    <bean id="BuildEventFiringInterceptor"
    class="com.xxx.build.events.BuildEventFiringInterc eptor">
    <property name="eventManager">
    <ref local="EventManager" />
    </property>
    </bean>
Working...
X