Announcement Announcement Module
Collapse
No announcement yet.
Same DAO is injected at mutiple places in the same bean ( nested beans ) Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Same DAO is injected at mutiple places in the same bean ( nested beans )

    Hello, I have the following

    Code:
    <bean id="abcManager" parent="TxProxyTemplate">
        <property name="target">
            <bean class="com.x.y.AbcManagerImpl">
              <property name="abcDAO" ref="abcDAO"/>
              <property name="xyzManager" ref="xyzManager"/>
            </bean>
        </property>
    </bean>
    
    <bean id="xyzManager" parent="TxProxyTemplate">
        <property name="target">
            <bean class="com.x.y.XyzManagerImpl">
              <property name="abcDAO" ref="abcDAO"/>
              <property name="anotherManager" ref="anotherManager"/>
            </bean>
        </property>
    </bean>
    
    <bean id="anotherManager" parent="TxProxyTemplate">
        <property name="target">
          <bean class="com.x.y.AnotherManagerImpl">
            <property name="abcDAO" ref="abcDAO"/>
            <property name="oneMoreManager" ref="oneMoreManager"/>
          </bean>
        </property>
    </bean>
    What is the issue with the following configuration? will having the same DAO at the different levels cause concurency issues?

    What would be a typical fix for the nested transactions issue?

    We found out that we get lots of weblogic connection releases when we have high load.

    is this because y

    We use Hibernate for DAO operations.
Working...
X