Announcement Announcement Module
Collapse
No announcement yet.
How to measure pooling for a bean. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to measure pooling for a bean.

    Hi,

    How can I know if two different instances has been created or not when two different simultaneous requests comes in.

    -----------------------------------
    Please find the below code to create the pooling .

    <bean id="flexLicensingService"
    class="com.vmware.licensing.services.FlexLicensing ServiceImpl"
    singleton="true">

    <property name="flexSkuLicenseMapDao">
    <ref bean="flexSkuLicenseMapDao"/>
    </property>
    <property name="flexStoreSKUAddonMapDao">
    <ref bean="flexStoreSKUAddonMapDao"/>
    </property>
    </bean>

    <bean id="licensingServiceTarget"
    class="com.vmware.licensing.services.LicensingServ iceImpl"
    singleton="false">

    <property name="flexLicensingService">
    <ref bean="flexLicensingService"/>
    </property>


    </bean>

    <bean id="licensingService"
    class="org.springframework.aop.framework.ProxyFact oryBean">
    <property name="proxyInterfaces">
    <value>com.vmware.licensing.services.LicensingSe rv ice</value>
    </property>
    <property name="targetSource">
    <ref local="commonsPoolTargetSource"/>
    </property>
    <property name="interceptorNames">
    <list>
    <value>transactionInterceptor</value>
    <!--<value>licensingServiceTarget</value> -->
    </list>
    </property>
    </bean>

    <bean id="commonsPoolTargetSource"
    class="org.springframework.aop.target.CommonsPoolT argetSource">
    <property name="maxSize">
    <value>30</value>
    </property>

    <property name="targetBeanName">
    <value>licensingServiceTarget</value>
    </property>
    </bean>


    Thanks,
    Lokesh
Working...
X