Reposting
I am posting this here because betterpetshop seems dead.

Was looking betterpetshop's spring configuration file and noticed the settings below.

If "petshopService" bean references "petshopServiceTarget" directly,
what is the purpose of setting "poolTargetSource" and "businessObject" bean??

Regards,
Sean

    <!-- Petclinic primary business object: Hibernate implementation -->
<bean id="petshopServiceTarget" class="johnmammen.betterpetshop.service.spring.PetshopManagerImpl"
    singleton="false"
    >
        <property name="order"><ref local="orderDAO"/></property>
        <property name="product"><ref local="productDAO"/></property>
        <property name="customer"><ref local="customerDAO"/></property>
        <property name="bannerdata"><ref local="bannerdataDAO"/></property>
</bean> <bean id="poolTargetSource"
        class="org.springframework.aop.target.CommonsPoolTargetSource">
<property name="targetBeanName"><value>petshopServiceTarget</value></property>
        <property name="maxSize"><value>25</value></property>
    </bean>
<bean id="businessObject"
        class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="targetSource"><ref local="poolTargetSource"/></property>
    </bean>

    <!-- Transactional proxy for the Petclinic primary business object -->
<bean id="petshopService" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"> <property name="transactionManager"><ref local="transactionManager"/></property> <property name="target"><ref local="petshopServiceTarget"/></property>
        <property name="transactionAttributes">
            <props>
                <prop key="get*">PROPAGATION_REQUIRED,readOnly</prop>
                <prop key="find*">PROPAGATION_REQUIRED,readOnly</prop>
                <prop key="load*">PROPAGATION_REQUIRED,readOnly</prop>
                <prop key="store*">PROPAGATION_REQUIRED</prop>
            </props>
        </property>
    </bean>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to