You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by tirtza <ti...@corp.idt.net> on 2007/10/28 11:36:57 UTC
JaxWsProxyFactoryBean port change
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.
Re: JaxWsProxyFactoryBean port change
Posted by Willem2 <ni...@iona.com>.
Hi,
Here is a way[1] that you can specify the address per message.
[1] http://www.nabble.com/Re%3A-Client-question-p12429227.html
Willem.
tirtza wrote:
>
> 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#a13452117
Sent from the cxf-user mailing list archive at Nabble.com.