Hi,
I have configured the bean in xml as given below.
<bean id="searchDAO" parent="txProxyTemplate"> ...
<bean id="txProxyTemplate" abstract="true"
class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
<property name="transactionManager">
<ref bean="transactionManager" />
</property>
<property name="preInterceptors">
<list>
<ref bean="exceptionInterceptor" />
<!-- <ref local="methodTimeInterceptor" /> -->
</list>
</property>
<property name="transactionAttributes">
<props>
<prop key="save*">
PROPAGATION_REQUIRED,-com.radaptive.common.exception.RttException
</prop>
<prop key="update*">
PROPAGATION_REQUIRED,-com.radaptive.common.exception.RttException
</prop>
<prop key="delete*">
PROPAGATION_REQUIRED,-com.radaptive.common.exception.RttException
</prop>
<prop key="*">
PROPAGATION_REQUIRED,-com.radaptive.common.exception.RttException
</prop>
</props>
</property>
</bean>
Am getting the bean like
WebApplicationContext context;
SearchDAOImpl searchDAO = (SearchDAOImpl)context.getBean("searchDAO");
While accessing bean like this I am getting the class cast exception like
$Proxy17 cannot be cast to com.radaptive.rdpv.search.dao.impl.SearchDAOImpl
Thanks in advance


Reply With Quote
...