Announcement Announcement Module
Collapse
No announcement yet.
How to pool this Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to pool this

    Hi,

    <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>

    There is an IMPL bean like this, Can I pool this bean ? If so how can I achieve the same.


    Thanks,
    Lokesh

  • #2
    Maybe this is what you are looking for:
    http://static.springframework.org/sp...e/aop-api.html
    @see 7.10.2. Pooling target sources

    Comment


    • #3
      Hi Fleffi,

      Thanks, that URL defenitely helped a lot. But this is a different scenario. given below is the code snippet. Now I need to pool bean "flexLicensingService" which is referred in the bean "licensingServiceTarget" which is again an IMPL.

      ---------------------
      <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.LicensingServ 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>

      --------------
      Can we create a commonspooltargetsource without a proxyfactorybean.


      Thanks,
      Lokesh

      Comment

      Working...
      X