|
Need help with Hibernate?
I am trying to implement declarative transaction management in my application using BeanNameAutoProxyCreator.
but i am getting the "autoProxy" not eligible for processed by all BeanPostProcessors
Hibernate version:3.0
mapping files:
<value>
com/usjade/nda/hibernate/model/Approvals.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/ContactsMaster.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/DistiMaster.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/DocumentTxnHistory.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/EmployeeDirectorMaster.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/LegalAttachments.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/LegalDocType.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/LegalDocuments.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/LobDirector.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/ParticipantMaster.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/LookupMaster.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/QuestionAnswer.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/QuestionOptions.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/QuestionsMaster.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/TemplateQuestionMaster.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/TemplatesMaster.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/UserRoles.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/UserMaster.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/LegalPartsMaster.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/LegalPartsInfo.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/OracleUserMaster.hbm.xml
</value>
<value>
com/usjade/nda/hibernate/model/LobAttachmentApproval.hbm.xml
</value>
my code to proxy the the method saveNdaDocument in LegalDocumentDaoImpl.
<bean id="transactionManager"
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory">
<ref bean="sessionFactory" />
</property>
</bean>
<bean id="transactionAttributeSource"
class="org.springframework.transaction.interceptor.MethodMapTransactionAttributeSource">
<property name="methodMap">
<map>
<entry key="com.usjade.nda.hibernate.dao.LegalDocTypeDaoImpl.*">
<value>PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT</value>
</entry>
<entry key="com.usjade.nda.hibernate.dao.SearchDAOImpl.*">
<value>PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT</value>
</entry>
<entry key="com.usjade.nda.hibernate.dao.ParticipantDaoImpl.*">
<value>PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT</value>
</entry>
<entry key="com.usjade.nda.hibernate.dao.ContactDaoImpl.*">
<value>PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT</value>
</entry>
<entry key="com.usjade.nda.hibernate.dao.LegalDocumentsDaoImpl.save*" >
<value>PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT</value>
</entry>
<entry key="com.usjade.nda.hibernate.dao.UserMasterDaoImpl.*">
<value>PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT</value>
</entry>
<entry key="com.usjade.nda.hibernate.dao.TemplateMasterDaoImpl.*">
<value>PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT</value>
</entry>
<entry key="com.usjade.nda.hibernate.dao.LookupDaoImpl.*">
<value>PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT</value>
</entry>
<entry key="com.usjade.nda.hibernate.dao.LegalPartsDaoImpl.*">
<value>PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT</value>
</entry>
<entry key="com.usjade.nda.hibernate.dao.QuestionMasterDaoImpl.*">
<value>PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT</value>
</entry>
<entry key="com.usjade.nda.hibernate.dao.QuestionOptionsDaoImpl.*">
<value>PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT</value>
</entry>
<entry key="com.usjade.nda.hibernate.dao.LegalAttachmentsDaoImpl.*">
<value>PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT</value>
</entry>
<entry key="com.usjade.nda.hibernate.dao.LegalPartInfoDaoImpl.*">
<value>PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT</value>
</entry>
<entry key="com.usjade.nda.hibernate.dao.LobDirectorDaoImpl.*">
<value>PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT</value>
</entry>
<entry key="com.usjade.nda.hibernate.dao.UserRolesDaoImpl.*">
<value>PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT</value>
</entry>
<entry key="com.usjade.nda.hibernate.dao.EmployeeDirMasterDaoImpl.*">
<value>PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT</value>
</entry>
<entry key="com.usjade.nda.hibernate.dao.OracleUserMasterDaoImpl.*">
<value>PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT</value>
</entry>
</map>
</property>
</bean>
<bean id="transactionInterceptor"
class="org.springframework.transaction.interceptor.TransactionInterceptor">
<property name="transactionManager">
<ref bean="transactionManager"/>
</property>
<property name="transactionAttributeSource">
<ref bean="transactionAttributeSource"/>
</property>
</bean>
<bean id="transactionAdvisor" class="org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor">
<constructor-arg>
<ref bean="transactionInterceptor"/>
</constructor-arg>
</bean>
<bean id="autoproxy"
class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator" >
<!-- <property name="transactionAdvisor">
<list>
<idref bean="transactionAdvisor"/>
</list>
</property>-->
<property name="beanNames">
<list>
<value>*Impl</value>
<value>*Dao</value>
</list>
</property>
</bean>
the information is.error in creating the bean BeanNameAutoProxyCreator.
"autoProxy" not eligible for processed by BeanPostProcessors.
Any help would be appreciate.this is urgent.
|