[ 
https://issues.apache.org/activemq/browse/CAMEL-302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=42331#action_42331
 ] 

Claus Ibsen commented on CAMEL-302:
-----------------------------------

Donatello are ten information in your component specific to this component? 
Have you considered to store them on properties on the exchange itself and not 
on the in message itself. Properties on the exchange are ment for long lasting 
information.

See RomKals reponse in the thread:
http://www.nabble.com/WebLogic-JMS-request-to-EJB-method-to-JMS-response-td16688628s22882.html

However your request for a reverse strattegy is a valid use-case and a good 
idea to include in Camel if that really helps your situation.

So something like: 
{code}
setIncludeOnlyHeaders(Set<String> keys)
{code}

> Added support for the management of the Http headers
> ----------------------------------------------------
>
>                 Key: CAMEL-302
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-302
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-http
>    Affects Versions: 1.2.0
>            Reporter: Donatello Santoro
>            Priority: Minor
>         Attachments: httpHeaderPatch.patch
>
>
> The HttpProducer checks if in the map of the message there is the property 
> named "org.apache.camel.component.http.header". This property must contain a 
> map of String, that will be added to the header of the message Http.
> Then, in a component of Camel it will be possible to write:
> public void process(Exchange exchange) throws Exception {
>     Map<String,String> headerHttpMap = new HashMap<String,String>();    
>     exchange.getIn().setHeader("org.apache.camel.component.http.header", 
> headerHttpMap);
>         
>     headerHttpMap.put("SOAPAction", "testAction");
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to