On Friday, October 21, 2011 4:02:26 PM Seumas Soltysik wrote:
> If I have spring conifg with 3 different jaxws:endpoints defined
> corresponding to 3 different ports expressed in a service element in a wsdl
> and say the first endpoint fails to initialize because of  a bad address in
> the case of http or because a jms connection fails in the case of jms, the
> the 2nd and 3rd endpoints will not initialize.
> 
> This behaviour seems to be in CXF 2.1 -> 2.3. I find this behaviour to be
> strange since in seems the initialization of endpoints should be
> independent of each other. If one endpoint fails to initialized because a
> broker is down, why should this affect the initialization of other
> endpoints?
> 
> Is there some reason I am missing to explain why the Bus initialization of
> endpoints works in this manner?
> 
> BTW my server which initializes these endpoints simply consists of a
> creating a Bus from a SpringBusFactory using a Spring configuration file
> containing the above mentioned jaxws:endpoints.

Well, it's really the way Spring is designed and more or less falls into how 
spring developers would expect it to work.   If spring fails to create a bean 
for any reason it shuts down the context and throws an exception up.   Thus, 
the current behavior is exactly as per expectations, IMO.

-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog
Talend - http://www.talend.com

Reply via email to