You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2018/04/09 18:47:00 UTC

[jira] [Created] (CAMEL-12428) Cannot use Camel exchange headers in Processor with cxf-rs

Daniel Kulp created CAMEL-12428:
-----------------------------------

             Summary: Cannot use Camel exchange headers in Processor with cxf-rs
                 Key: CAMEL-12428
                 URL: https://issues.apache.org/jira/browse/CAMEL-12428
             Project: Camel
          Issue Type: Bug
          Components: camel-cxfrs
    Affects Versions: 2.21.0
            Reporter: Daniel Kulp
            Assignee: Daniel Kulp
             Fix For: 2.21.1



If you do a simple route from a "cxfrs:"  endpoint into a processor that does standard "camel" type things like:
{code}
exchange.getOut().setBody("Can't found the customer with uri " + path);
exchange.getOut().setHeader(Exchange.CONTENT_TYPE, "text/plain");
exchange.getOut().setHeader(Exchange.HTTP_RESPONSE_CODE, "404");
exchange.getOut().setFault(true);
{code}

the setHeader values are ignored and not sent back to the client.    They always get response code 200.   If you use a javax.ws.rs.core.Response object, it works fine.




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)