I have a route which sends a request to a MOM endpoint. Something like:
from("direct:serviceRequest").beanRef("serviceName", "methodName").
to("momComponent:" + momServiceDefinitionName).
beanRef("serviceName", "methodName");
This route works when the "mom endpoint" is up. However, if the mom endpoint
is down, I see:
*Exception in thread "main"
org.apache.camel.FailedToCreateProducerException: Failed to create Producer
for endpoint:
Is there a way to use one of the error handlers to catch
"FailedToCreateProducerException"? If the mom endpoint is down, I want camel
to start so that I can use another route to send out email alert that the
service isn't working because the mom endpoint is down.
Thanks.
from("direct:serviceRequest").beanRef("serviceName", "methodName").
to("momComponent:" + momServiceDefinitionName).
beanRef("serviceName", "methodName");
This route works when the "mom endpoint" is up. However, if the mom endpoint
is down, I see:
*Exception in thread "main"
org.apache.camel.FailedToCreateProducerException: Failed to create Producer
for endpoint:
Is there a way to use one of the error handlers to catch
"FailedToCreateProducerException"? If the mom endpoint is down, I want camel
to start so that I can use another route to send out email alert that the
service isn't working because the mom endpoint is down.
Thanks.