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

Claus Ibsen commented on CAMEL-8142:
------------------------------------

enricher eip is a general solution that works with all components. But as you 
say it would require a bit more configuration and currently need to setup an 
aggregation strategty to only merge the result to a header.

Though in a future Camel release we could look into making that use-case easier.

> camel-sql: store query result in header instead of body
> -------------------------------------------------------
>
>                 Key: CAMEL-8142
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8142
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-sql
>            Reporter: Daniel Pocock
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.15.0
>
>
> The SQL component stores query results in the message body, clobbering the 
> existing body.  It would be nice to store the results of some queries in a 
> header.
> This would be particularly useful when combined with outputType=SelectOne to 
> store a value such as a primary key / object ID into a header.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to