Announcement Announcement Module
Collapse
No announcement yet.
ContextSourceAndDataSourceTransactionManager and renamingStrategy Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • ContextSourceAndDataSourceTransactionManager and renamingStrategy

    Hi all, I was trying to use "ContextSourceAndDataSourceTransactionManager" with "DifferentSubtreeTempEntryRenamingStrategy", so I wrote the following in my spring-context.xml.

    Code:
    <bean id="transactionManager"
              class="org.springframework.ldap.transaction.compensating.manager.ContextSourceAndDataSourceTransactionManager">
            <property name="contextSource" ref="poolingTransactionContextSource"/>
            <property name="dataSource" ref="dataSource"/>
            <property name="renamingStrategy" ref="tempEntryRenamingStrategy"/>
    </bean>
    But the setter of renamingStrategy in ContextSourceAndDataSourceTransactionManager.java is protected and it isn't recognized.
    So, shouldn't it be public setRenamingStrategy(...) instead of protected setRenamingStrategy(...)?

    Regards,
    Rafael.
Working...
X