Camel-Spring, JavaConfig and Constructor-Based Injection

2014-10-10 Thread Ziemer, Tom
Hi, currently I am setting up a new project using Spring and Camel. For a change, I wanted to use JavaConfig instead of the XML and had little problem injecting a ProducerTemplate. I am aiming for ConstructorBasedInjection, and @EndpointInject did not work for me. What I ended up doing is the

RE: HTTP Basic Authentication

2013-10-29 Thread Ziemer, Tom
Hi, it happens by design: Generally, preemptive authentication can be considered less * secure than a response to an authentication challenge * and therefore discouraged. (see

RE: HTTP: how to handle status code 500?

2013-10-29 Thread Ziemer, Tom
Hi, add something like this to your route: onException(HttpOperationFailedException.class) .bean(routeErrorHandler) .end(); You can use .handled(true|false) or .continued() to further tune the exception handling. In our case, the routeErrorHandler is a spring bean, that

CAMEL-SOAP uses wrong namespace

2013-09-26 Thread Ziemer, Tom
Hi, I have an existing web-service-client (spring-ws+JAXB) that I want to replace with camel. The XSD needed for this WS uses different namespaces for request/response and fault. While trying to migrate to camel/camel-soap, I encountered the following problem: Request/Response NS: foo Fault

RE: CAMEL-SOAP uses wrong namespace

2013-09-26 Thread Ziemer, Tom
Hi, I was able to trace the problem to org.apache.camel.dataformat.soap.name.TypeNameStrategy, which is responsible to find the namespace for a given type. In my case, I had an XJC-generated class that did have an (almost empty) @XmlType and an @XmlRootElement with name and namespace. The