jwray
Jul 22nd, 2005, 02:19 PM
Hi,
I'm using JaxRpcPortProxyFactoryBean to provide access to a web service I need for my application and, when the service is up (I have no control over it), all is fine.
My question is how to deal with the situation when the service is down at application startup. Currently, this throws a BeanCreationException when the application context is read. Is there anything in Spring to deal with this situation? Basically, not just fail, but continue to construct the rest of the beans/services. Then, when the specific service is needed, check to see if it has actually been constructed correctly, maybe try again, etc.
thanks for any pointers,
Jonny
I'm using JaxRpcPortProxyFactoryBean to provide access to a web service I need for my application and, when the service is up (I have no control over it), all is fine.
My question is how to deal with the situation when the service is down at application startup. Currently, this throws a BeanCreationException when the application context is read. Is there anything in Spring to deal with this situation? Basically, not just fail, but continue to construct the rest of the beans/services. Then, when the specific service is needed, check to see if it has actually been constructed correctly, maybe try again, etc.
thanks for any pointers,
Jonny