JaxWsPortProxyFactoryBean for Web Service integration
Hi,
I am using JaxWsPortProxyFactoryBean for integration with Web services. Following is my XML file:
Code:
<bean id="CWebService" class="org.springframework.remoting.jaxws.JaxWsPortProxyFactoryBean">
<property name="serviceInterface" value="com.examples.MyService"/>
<property name="wsdlDocumentUrl" value="${My.WS.URL}"/>
<property name="namespaceUri" value="http://myservice.com"/>
<property name="serviceName" value="MyService"/>
<property name="portName" value="MyServicePort"/>
</bean>
Now my server will not start if target web service is down. Even target web service come up later, since my bean is created, it will not be re-initialized until my server is restarted.
Is there a way to handle this scenario without restarting server?
Thanks and Regards,
Chetan