I am using spring + CXF (JaxWsProxyFactoryBean ) and need to sometimes change the port of my target endpoint without restarting the application. How would I do this? The only solution I thought of was to implement ApplicationContextAware, load the JaxWsProxyFactoryBean bean and change the address. This aproach is a bit ugly and I am hoping someone has a better solution.
My beans <bean id="balanceclient" class="a.b.c.BalanceEnquiry" factory-bean="clientFactory" factory-method="create" scope="prototype"/> <bean id="clientFactory" class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean"> <property name="serviceClass" value="a.b.c.BalanceEnquiry"/> <property name="address" value="http://someurl:21913/webservices/services/BalanceEnquiry"/> </bean> -- View this message in context: http://www.nabble.com/JaxWsProxyFactoryBean-port-change-tf4706436.html#a13452054 Sent from the cxf-user mailing list archive at Nabble.com.