How to create the a proxied object in Spring
I have created my daos using spring factory method getDAO(). In getDAO() I am creating the userDAO instance using Java Reflection by calling appropriate constructor and I keep it in a HashMap.
Below is the config
<bean id="userDao" factory-bean="schema1DaoFactory" factory-method="getDAO">
<constructor-arg value="map" />
<constructor-arg ref="engLocale" />
I am using the @Transactional annotation in the userDAO. Now the issue is that my trasanction does not work as the object userDAO is not a proxied Spring object. So how can I create a proxied object for @Transactional annotation after the object has been created as a typical Java object.
Is BeanPostProcessor is of help, if yes then how. Please help.