:shock:
The MethodMapTransactionAttributeSource in spring version 1.1.2 needs methodMap property being set.
The set method of the property requires a Map, what's wrong with my bean definition below.
It saids can't convert java.util.Property to java.util.HashMap, but why hashmap, the setter method requires only java.util.Map. Is this a bug?
Can anybody tell me how to configure this bean in Spring 1.1.2?Code:<bean id="classMethodMatchAttributeSource" class="org.springframework.transaction.interceptor.MethodMapTransactionAttributeSource"> <property name="methodMap"> <props> <prop key="com.erry.dx.security.DXSecurityManager.createNewRSAKeyPair">PROPAGATION_REQUIRED,-Exception</prop> <prop key="com.erry.dx.security.DXSecurityManager.importRSAKeyPair">PROPAGATION_REQUIRED,-Exception</prop> <prop key="com.erry.dx.security.DXSecurityManager.*">PROPAGATION_SUPPORTS</prop> <prop key="com.erry.dx.monitoring.DxRuntimeMonitor.registerNewWorkGroup">PROPAGATION_REQUIRED,readOnly</prop> <prop key="com.erry.dx.monitoring.DxRuntimeMonitor.*">PROPAGATION_SUPPORTS</prop> <prop key="com.erry.dx.core.DxWorkManager.sendDataElements">PROPAGATION_NEVER</prop> <prop key="*">PROPAGATION_REQUIRED,-Exception</prop> </props> </property> </bean> I have tried to use this either. But still class cast exception occurs. Says that error trying to convert a LinkedMap to HashMap. <map> <entry>...</entry> </map>


Reply With Quote