How to remove the xml spring configuration and use annotation? -
i remove next code , utilize annotation (@configuration). don't understand how remove bean: testserviceclienttarget
<bean id="testserviceclientfactorybean" class="org.apache.cxf.jaxws.jaxwsproxyfactorybean"> <property name="serviceclass" value="br.com.test.servicews" /> <property name="features"> <util:list> <bean class="org.apache.cxf.clustering.loaddistributorfeature"> <property name="strategy"> <bean class="org.apache.cxf.clustering.sequentialstrategy"> <property name="alternateaddresses"> <util:list> <value>xxx/localhost:8080/app-teste-web/services/test</value> <value>xxx/localhost:8180/app-teste-web/services/test</value> <value>xxx/localhost:8280/app-teste-web/services/test</value> </util:list> </property> </bean> </property> </bean> </util:list> </property>
<bean id="testserviceclienttarget" factory-bean="testserviceclientfactorybean" factory-method="create" scope="prototype" lazy-init="true" /> <bean id="testserviceclient" class="org.springframework.aop.framework.proxyfactorybean"> <property name="targetsource"> <bean class="org.springframework.aop.target.commonspooltargetsource"> <property name="targetclass" value="br.com.test.servicews" /> <property name="targetbeanname" value="testserviceclienttarget" /> <property name="maxsize" value="10" /> <property name="maxwait" value="5000" /> </bean> </property>
i started configure beans testserviceclientfactorybean , testserviceclient couldn't understand how create testserviceclienttarget. specially because used @ property targetbeanname string.
could understand question?
regards.
spring configuration annotations factory-method
No comments:
Post a Comment