You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Anuja <An...@bankofamerica.com> on 2013/10/03 20:08:41 UTC

header.operationName defaulting to a single operation always

Hi , 

I have two operations at one endpoint and have configured the routes using
RouteBuilder. Irrespective of the operation called from SOAP UI, (inspite of
setting the operationName in the header explicitly), the request is always
being routed to one operation.  Not sure how the operationName is set in the
header.

private static final String CXF_RS_ENDPOINT_URI =
"cxfrs:bean:BBRestEndPoint";
  
    public void configure() {
    	 errorHandler(new NoErrorHandlerBuilder());
    	
from(CXF_RS_ENDPOINT_URI).to("log:input?showHeaders=true").recipientList(simple("direct:${header.operationName}")); 
 from("direct:registerBB").process(new Processor() {
             public void process(Exchange exchange) throws Exception {... 
});
 from("direct:retrieveBB").process(new Processor() {
             public void process(Exchange exchange) throws Exception {... 
});

}.

The requests are always being routed to registerBB and not retrieveBB .



--
View this message in context: http://camel.465427.n5.nabble.com/header-operationName-defaulting-to-a-single-operation-always-tp5740837.html
Sent from the Camel - Users mailing list archive at Nabble.com.